make latest jshint happy, update deps

This commit is contained in:
mourner 2013-05-13 22:57:01 +03:00
parent 3d3e2cd12d
commit d62ee9e5b3
2 changed files with 6 additions and 5 deletions

View File

@ -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": {

View File

@ -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];
}; };