Update builds & docs.

This commit is contained in:
John-David Dalton
2013-10-30 09:46:58 -07:00
parent 22aa02895e
commit 805f2b28a9
8 changed files with 382 additions and 329 deletions

47
dist/lodash.compat.js vendored
View File

@@ -391,15 +391,6 @@
return typeof value.toString != 'function' && typeof (value + '') == 'string';
}
/**
* A no-operation function.
*
* @private
*/
function noop() {
// no operation performed
}
/**
* Releases the given array back to the array pool.
*
@@ -1116,14 +1107,17 @@
}
// fallback for browsers without `Object.create`
if (!nativeCreate) {
baseCreate = function(prototype) {
if (isObject(prototype)) {
noop.prototype = prototype;
var result = new noop;
noop.prototype = null;
}
return result || {};
};
baseCreate = (function() {
function Object() {}
return function(prototype) {
if (isObject(prototype)) {
Object.prototype = prototype;
var result = new Object;
Object.prototype = null;
}
return result || context.Object();
};
}());
}
/**
@@ -1844,7 +1838,7 @@
if (!support.argsClass) {
isArguments = function(value) {
return value && typeof value == 'object' && typeof value.length == 'number' &&
hasOwnProperty.call(value, 'callee') || false;
hasOwnProperty.call(value, 'callee') && propertyIsEnumerable.call(value, 'callee') || false;
};
}
@@ -6116,6 +6110,22 @@
return this;
}
/**
* A no-operation function.
*
* @static
* @memberOf _
* @category Utilities
* @example
*
* var object = { 'name': 'fred' };
* _.noop(object) === undefined;
* // => true
*/
function noop() {
// no operation performed
}
/**
* Converts the given value into an integer of the specified radix.
* If `radix` is `undefined` or `0` a `radix` of `10` is used unless the
@@ -6736,6 +6746,7 @@
lodash.lastIndexOf = lastIndexOf;
lodash.mixin = mixin;
lodash.noConflict = noConflict;
lodash.noop = noop;
lodash.parseInt = parseInt;
lodash.random = random;
lodash.reduce = reduce;