make latest jshint happy, update deps
This commit is contained in:
parent
3d3e2cd12d
commit
d62ee9e5b3
@ -3,11 +3,11 @@
|
|||||||
"version": "0.6.0",
|
"version": "0.6.0",
|
||||||
"description": "JavaScript library for mobile-friendly interactive maps",
|
"description": "JavaScript library for mobile-friendly interactive maps",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"jshint": "~1.1.0",
|
"jshint": "~2.0.1",
|
||||||
"mocha": "~1.9.0",
|
"mocha": "~1.9.0",
|
||||||
"karma": "~0.8.0",
|
"karma": "~0.8.0",
|
||||||
"uglify-js": "~2.2.5",
|
"uglify-js": "~2.3.2",
|
||||||
"jake": "~0.5.10"
|
"jake": "~0.5.15"
|
||||||
},
|
},
|
||||||
"main": "dist/leaflet.js",
|
"main": "dist/leaflet.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -26,8 +26,9 @@ L.Util = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
stamp: (function () {
|
stamp: (function () {
|
||||||
var lastId = 0, key = '_leaflet_id';
|
var lastId = 0,
|
||||||
return function (/*Object*/ obj) {
|
key = '_leaflet_id';
|
||||||
|
return function (obj) {
|
||||||
obj[key] = obj[key] || ++lastId;
|
obj[key] = obj[key] || ++lastId;
|
||||||
return obj[key];
|
return obj[key];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user