Fix build.

Former-commit-id: b894b652c8c566411bb47935b67d649a2e6461e7
This commit is contained in:
John-David Dalton
2013-07-14 19:16:53 -07:00
parent 64eeb091b8
commit 77d323b38c
7 changed files with 140 additions and 135 deletions

14
dist/lodash.compat.js vendored
View File

@@ -22,8 +22,8 @@
/** Used internally to indicate various things */
var indicatorObject = {};
/** Used to avoid reference errors in `createIterator` */
var iteratorObject = {};
/** Used to avoid reference errors and circular dependency errors */
var dependencyObject = {};
/** Used to prefix keys to avoid issues with `__proto__` and properties on `Object.prototype` */
var keyPrefix = +new Date + '';
@@ -1105,7 +1105,7 @@
*/
function createIterator() {
var data = getObject(),
keys = iteratorObject.keys;
keys = dependencyObject.keys;
// data properties
data.shadowedProps = shadowedProps;
@@ -1316,7 +1316,7 @@
* _.keys({ 'one': 1, 'two': 2, 'three': 3 });
* // => ['one', 'two', 'three'] (order is not guaranteed)
*/
var keys = iteratorObject.keys = !nativeKeys ? shimKeys : function(object) {
var keys = dependencyObject.keys = !nativeKeys ? shimKeys : function(object) {
if (!isObject(object)) {
return [];
}
@@ -1898,7 +1898,7 @@
* });
* // => true
*/
function isEqual(a, b, callback, thisArg, stackA, stackB) {
var isEqual = dependencyObject.isEqual = function(a, b, callback, thisArg, stackA, stackB) {
// used to indicate that when comparing objects, `a` has at least the properties of `b`
var whereIndicator = callback === indicatorObject;
if (typeof callback == 'function' && !whereIndicator) {
@@ -2054,7 +2054,7 @@
releaseArray(stackB);
}
return result;
}
};
/**
* Checks if `value` is, or can be coerced to, a finite number.
@@ -4748,7 +4748,7 @@
var length = props.length,
result = false;
while (length--) {
if (!(result = isEqual(object[props[length]], func[props[length]], indicatorObject))) {
if (!(result = dependencyObject.isEqual(object[props[length]], func[props[length]], indicatorObject))) {
break;
}
}