(obj)
| 65 | // @function stamp(obj: Object): Number |
| 66 | // Returns the unique ID of an object, assigning it one if it doesn't have it. |
| 67 | function stamp(obj) { |
| 68 | if (!('_leaflet_id' in obj)) { |
| 69 | obj['_leaflet_id'] = ++lastId; |
| 70 | } |
| 71 | return obj._leaflet_id; |
| 72 | } |
| 73 | |
| 74 | // @function throttle(fn: Function, time: Number, context: Object): Function |
| 75 | // Returns a function which executes function `fn` with the given scope `context` |
no outgoing calls
no test coverage detected