Move idCounter into runInContext.

This commit is contained in:
John-David Dalton
2014-12-20 11:37:44 -06:00
parent 6c2f7046d1
commit 48a0986c14

View File

@@ -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._;