From d62ee9e5b3240b4e9ad85185e761fe161c5dc2db Mon Sep 17 00:00:00 2001 From: mourner Date: Mon, 13 May 2013 22:57:01 +0300 Subject: [PATCH] make latest jshint happy, update deps --- package.json | 6 +++--- src/core/Util.js | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 02943d4b..60d52dbf 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/core/Util.js b/src/core/Util.js index 9c9f25c5..3638a997 100644 --- a/src/core/Util.js +++ b/src/core/Util.js @@ -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]; };