From 48a0986c14a49766991059d4097429d5aa3f42d7 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 20 Dec 2014 11:37:44 -0600 Subject: [PATCH] Move `idCounter` into `runInContext`. --- lodash.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lodash.js b/lodash.js index 20846af83..6b3fd3991 100644 --- a/lodash.js +++ b/lodash.js @@ -44,9 +44,6 @@ /** Used as the internal argument placeholder. */ var PLACEHOLDER = '__lodash_placeholder__'; - /** Used to generate unique IDs. */ - var idCounter = 0; - /** Used to match empty string literals in compiled template source. */ var reEmptyStringLeading = /\b__p \+= '';/g, reEmptyStringMiddle = /\b(__p \+=) '' \+/g, @@ -909,6 +906,9 @@ /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; + /** Used to generate unique IDs. */ + var idCounter = 0; + /** Used to restore the original `_` reference in `_.noConflict`. */ var oldDash = context._;