MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / stamp

Function stamp

libs/leaflet/leaflet-src.js:67–72  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

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`

Callers 3

leaflet-src.jsFile · 0.85
addOneFunction · 0.85
removeOneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected