Rebuild docs and files.

Former-commit-id: 3f0dd7d8a07e2a3694619ce7277573ffb6f88ef6
This commit is contained in:
John-David Dalton
2013-05-25 01:08:38 -07:00
parent d28cc15be2
commit 2e3b135fe9
5 changed files with 148 additions and 152 deletions

29
dist/lodash.js vendored
View File

@@ -661,24 +661,21 @@
* @returns {Boolean} Returns `true`, if `value` is a plain object, else `false`.
*/
function shimIsPlainObject(value) {
// avoid non-objects and false positives for `arguments` objects
var result = false;
if (!(value && toString.call(value) == objectClass)) {
return result;
}
// check that the constructor is `Object` (i.e. `Object instanceof Object`)
var ctor = value.constructor;
var ctor,
result;
if (isFunction(ctor) ? ctor instanceof ctor : true) {
// In most environments an object's own properties are iterated before
// its inherited properties. If the last iterated property is an object's
// own property then there are no inherited enumerable properties.
forIn(value, function(value, key) {
result = key;
});
return result === false || hasOwnProperty.call(value, result);
// avoid non Object objects, `arguments` objects, and DOM elements
if (!(value && toString.call(value) == objectClass) ||
(ctor = value.constructor, isFunction(ctor) && !(ctor instanceof ctor))) {
return false;
}
return result;
// In most environments an object's own properties are iterated before
// its inherited properties. If the last iterated property is an object's
// own property then there are no inherited enumerable properties.
forIn(value, function(value, key) {
result = key;
});
return result === undefined || hasOwnProperty.call(value, result);
}
/**