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