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

51
dist/lodash.compat.js vendored
View File

@@ -1007,34 +1007,33 @@
* @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) || (!support.argsClass && isArguments(value))) {
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 : (support.nodeClass || !isNode(value))) {
// IE < 9 iterates inherited properties before own properties. If the first
// iterated property is an object's own property then there are no inherited
// enumerable properties.
if (support.ownLast) {
forIn(value, function(value, key, object) {
result = hasOwnProperty.call(object, key);
return false;
});
return result === 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)) ||
(!support.argsClass && isArguments(value)) ||
(!support.nodeClass && isNode(value))) {
return false;
}
return result;
// IE < 9 iterates inherited properties before own properties. If the first
// iterated property is an object's own property then there are no inherited
// enumerable properties.
if (support.ownLast) {
forIn(value, function(value, key, object) {
result = hasOwnProperty.call(object, key);
return false;
});
return result !== false;
}
// 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);
}
/**

View File

@@ -9,7 +9,7 @@
if(f){for(;++o<i;)u(n[o]);a&&(f=s=p=null)}return f?{contains:e,push:u}:{contains:t,push:r}}function K(){for(var n,t={g:x,b:"",c:"",e:"r",f:"",h:"",i:!0,j:!!Ar},r=0;n=arguments[r];r++)for(var e in n)t[e]=n[e];r=t.a,t.d=/^[^,]+/.exec(r)[0],n=qt,r="return function("+r+"){",e="var m,r="+t.d+",C="+t.e+";if(!r)return C;"+t.h+";",t.b?(e+="var s=r.length;m=-1;if("+t.b+"){",wr.unindexedChars&&(e+="if(q(r)){r=r.split('')}"),e+="while(++m<s){"+t.f+";}}else{"):wr.nonEnumArgs&&(e+="var s=r.length;m=-1;if(s&&n(r)){while(++m<s){m+='';"+t.f+";}}else{"),wr.enumPrototypes&&(e+="var E=typeof r=='function';"),wr.enumErrorProps&&(e+="var D=r===j||r instanceof Error;");
var u=[];if(wr.enumPrototypes&&u.push('!(E&&m=="prototype")'),wr.enumErrorProps&&u.push('!(D&&(m=="message"||m=="name"))'),t.i&&t.j)e+="var A=-1,B=z[typeof r]?t(r):[],s=B.length;while(++A<s){m=B[A];",u.length&&(e+="if("+u.join("&&")+"){"),e+=t.f+";",u.length&&(e+="}"),e+="}";else if(e+="for(m in r){",t.i&&u.push("l.call(r, m)"),u.length&&(e+="if("+u.join("&&")+"){"),e+=t.f+";",u.length&&(e+="}"),e+="}",wr.nonEnumShadows){for(e+="if(r!==y){var h=r.constructor,p=r===(h&&h.prototype),e=r===H?G:r===j?i:J.call(r),v=w[e];",k=0;7>k;k++)e+="m='"+t.g[k]+"';if((!(p&&v[m])&&l.call(r,m))",t.i||(e+="||(!v[m]&&r[m]!==y[m])"),e+="){"+t.f+"}";
e+="}"}return(t.b||wr.nonEnumArgs)&&(e+="}"),e+=t.c+";return C",n("i,j,l,n,o,q,t,u,y,z,w,G,H,J",r+e+"}")(I,Kt,rr,rt,Or,ft,Ar,a,Mt,q,jr,F,Ut,ir)}function M(n){return ct(n)?lr(n):{}}function U(n){return Br[n]}function V(n){return"\\"+D[n]}function Q(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}function W(n){this.__wrapped__=n}function X(){}function Y(n){return function(t,e,u,o){return typeof e!="boolean"&&null!=e&&(o=u,u=o&&o[e]===t?r:e,e=!1),null!=u&&(u=a.createCallback(u,o)),n(t,e,u,o)
}}function Z(n){var t=!1;if(!n||ir.call(n)!=P||!wr.argsClass&&rt(n))return t;var r=n.constructor;return(it(r)?r instanceof r:wr.nodeClass||!Q(n))?wr.ownLast?(Fr(n,function(n,r,e){return t=rr.call(e,r),!1}),!0===t):(Fr(n,function(n,r){t=r}),!1===t||rr.call(n,t)):t}function nt(n,t,r){t||(t=0),typeof r=="undefined"&&(r=n?n.length:0);var e=-1;r=r-t||0;for(var u=zt(0>r?0:r);++e<r;)u[e]=n[t+e];return u}function tt(n){return Nr[n]}function rt(n){return ir.call(n)==E}function et(n,t,e,u,o,i){var c=n;if(typeof t!="boolean"&&null!=t&&(u=e,e=t,t=!1),typeof e=="function"){if(e=typeof u=="undefined"?e:a.createCallback(e,u,1),c=e(c),typeof c!="undefined")return c;
}}function Z(n){var t,e;return!n||ir.call(n)!=P||(t=n.constructor,it(t)&&!(t instanceof t))||!wr.argsClass&&rt(n)||!wr.nodeClass&&Q(n)?!1:wr.ownLast?(Fr(n,function(n,t,r){return e=rr.call(r,t),!1}),!1!==e):(Fr(n,function(n,t){e=t}),e===r||rr.call(n,e))}function nt(n,t,r){t||(t=0),typeof r=="undefined"&&(r=n?n.length:0);var e=-1;r=r-t||0;for(var u=zt(0>r?0:r);++e<r;)u[e]=n[t+e];return u}function tt(n){return Nr[n]}function rt(n){return ir.call(n)==E}function et(n,t,e,u,o,i){var c=n;if(typeof t!="boolean"&&null!=t&&(u=e,e=t,t=!1),typeof e=="function"){if(e=typeof u=="undefined"?e:a.createCallback(e,u,1),c=e(c),typeof c!="undefined")return c;
c=n}if(u=ct(c)){var l=ir.call(c);if(!$[l]||!wr.nodeClass&&Q(c))return c;var f=Or(c)}if(!u||!t)return u?f?nt(c):Pr({},c):c;switch(u=Cr[l],l){case S:case A:return new u(+c);case N:case F:return new u(c);case z:return u(c.source,h.exec(c))}for(o||(o=[]),i||(i=[]),l=o.length;l--;)if(o[l]==n)return i[l];return c=f?u(c.length):{},f&&(rr.call(n,"index")&&(c.index=n.index),rr.call(n,"input")&&(c.input=n.input)),o.push(n),i.push(c),(f?Ir:$r)(n,function(n,u){c[u]=et(n,t,e,r,o,i)}),c}function ut(n){var t=[];
return Fr(n,function(n,r){it(n)&&t.push(r)}),t.sort()}function at(n){for(var t=-1,r=Ar(n),e=r.length,u={};++t<e;){var a=r[t];u[n[a]]=a}return u}function ot(n,t,r,e,u,o){var c=r===i;if(typeof r=="function"&&!c){r=a.createCallback(r,e,2);var l=r(n,t);if(typeof l!="undefined")return!!l}if(n===t)return 0!==n||1/n==1/t;var f=typeof n,p=typeof t;if(n===n&&(!n||"function"!=f&&"object"!=f)&&(!t||"function"!=p&&"object"!=p))return!1;if(null==n||null==t)return n===t;if(p=ir.call(n),f=ir.call(t),p==E&&(p=P),f==E&&(f=P),p!=f)return!1;
switch(p){case S:case A:return+n==+t;case N:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case z:case F:return n==Gt(t)}if(f=p==O,!f){if(rr.call(n,"__wrapped__")||rr.call(t,"__wrapped__"))return ot(n.__wrapped__||n,t.__wrapped__||t,r,e,u,o);if(p!=P||!wr.nodeClass&&(Q(n)||Q(t)))return!1;var p=!wr.argsObject&&rt(n)?Tt:n.constructor,s=!wr.argsObject&&rt(t)?Tt:t.constructor;if(p!=s&&(!it(p)||!(p instanceof p&&it(s)&&s instanceof s)))return!1}for(u||(u=[]),o||(o=[]),p=u.length;p--;)if(u[p]==n)return o[p]==t;

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);
}
/**

8
dist/lodash.min.js vendored
View File

@@ -9,10 +9,10 @@ if(!u)return a;for(var o=arguments,i=0,f=typeof e=="number"?2:o.length;++i<f;)if
return a}function V(n){var t,e=[];if(!n||!q[typeof n])return e;for(t in n)ee.call(n,t)&&e.push(t);return e}function G(n){return n&&typeof n=="object"&&!_e(n)&&ee.call(n,"__wrapped__")?n:new Z(n)}function H(n,t,e){e=(e||0)-1;for(var r=n.length;++e<r;)if(n[e]===t)return e;return-1}function J(n){return n.charCodeAt(0)}function L(n,t){var e=n.b,r=t.b;if(n=n.a,t=t.a,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return e<r?-1:1}function Q(n,t,e,r){function u(){var r=arguments,c=o?this:t;
return a||(n=t[i]),e.length&&(r=r.length?(r=be.call(r),f?r.concat(e):e.concat(r)):e),this instanceof u?(c=ct(n.prototype)?fe(n.prototype):{},r=n.apply(c,r),ct(r)?r:c):n.apply(c,r)}var a=ft(n),o=!e,i=t;if(o){var f=r;e=t}else if(!a){if(!r)throw new Gt;t=n}return u}function W(n){function t(t){return-1<H(n,t)}function e(t){n.push(t)}function o(n){var t=typeof n;if("boolean"==t||n==u)return y[n];var e=y[t]||(t="object",g),r="number"==t?n:p+n;return"object"==t?e[r]?-1<H(e[r],n):a:!!e[r]}function i(n){var t=typeof n;
if("boolean"==t||n==u)y[n]=r;else{var e=y[t]||(t="object",g),a="number"==t?n:p+n;"object"==t?f=(e[a]||(e[a]=[])).push(n)==l:e[a]=r}}n||(n=[]);var f,c=-1,l=n.length,v=l>=s,g={},y={"false":a,"function":a,"null":a,number:{},object:g,string:{},"true":a,undefined:a};if(v){for(;++c<l;)i(n[c]);f&&(v=y=g=u)}return v?{contains:o,push:i}:{contains:t,push:e}}function X(n){return je[n]}function Y(n){return"\\"+D[n]}function Z(n){this.__wrapped__=n}function nt(n){return function(t,r,o,i){return typeof r!="boolean"&&r!=u&&(i=o,o=i&&i[r]===t?e:r,r=a),o!=u&&(o=G.createCallback(o,i)),n(t,r,o,i)
}}function tt(n){var t=a;if(!n||oe.call(n)!=B)return t;var e=n.constructor;return(ft(e)?e instanceof e:1)?(K(n,function(n,e){t=e}),t===a||ee.call(n,t)):t}function et(n,t,e){t||(t=0),typeof e=="undefined"&&(e=n?n.length:0);var r=-1;e=e-t||0;for(var u=Tt(0>e?0:e);++r<e;)u[r]=n[t+r];return u}function rt(n){return we[n]}function ut(n,t,r,o,i,f){var c=n;if(typeof t!="boolean"&&t!=u&&(o=r,r=t,t=a),typeof r=="function"){if(r=typeof o=="undefined"?r:G.createCallback(r,o,1),c=r(c),typeof c!="undefined")return c;
c=n}if(o=ct(c)){var l=oe.call(c);if(!T[l])return c;var p=_e(c)}if(!o||!t)return o?p?et(c):U({},c):c;switch(o=me[l],l){case I:case N:return new o(+c);case $:case R:return new o(c);case F:return o(c.source,m.exec(c))}for(i||(i=[]),f||(f=[]),l=i.length;l--;)if(i[l]==n)return f[l];return c=p?o(c.length):{},p&&(ee.call(n,"index")&&(c.index=n.index),ee.call(n,"input")&&(c.input=n.input)),i.push(n),f.push(c),(p?mt:P)(n,function(n,u){c[u]=ut(n,t,r,e,i,f)}),c}function at(n){var t=[];return K(n,function(n,e){ft(n)&&t.push(e)
}),t.sort()}function ot(n){for(var t=-1,e=ke(n),r=e.length,u={};++t<r;){var a=e[t];u[n[a]]=a}return u}function it(n,t,e,o,i,f){var c=e===l;if(typeof e=="function"&&!c){e=G.createCallback(e,o,2);var p=e(n,t);if(typeof p!="undefined")return!!p}if(n===t)return 0!==n||1/n==1/t;var s=typeof n,v=typeof t;if(n===n&&(!n||"function"!=s&&"object"!=s)&&(!t||"function"!=v&&"object"!=v))return a;if(n==u||t==u)return n===t;if(v=oe.call(n),s=oe.call(t),v==E&&(v=B),s==E&&(s=B),v!=s)return a;switch(v){case I:case N:return+n==+t;
case $:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case F:case R:return n==Vt(t)}if(s=v==S,!s){if(ee.call(n,"__wrapped__")||ee.call(t,"__wrapped__"))return it(n.__wrapped__||n,t.__wrapped__||t,e,o,i,f);if(v!=B)return a;var v=n.constructor,g=t.constructor;if(v!=g&&(!ft(v)||!(v instanceof v&&ft(g)&&g instanceof g)))return a}for(i||(i=[]),f||(f=[]),v=i.length;v--;)if(i[v]==n)return f[v]==t;var y=0,p=r;if(i.push(n),f.push(t),s){if(v=n.length,y=t.length,p=y==n.length,!p&&!c)return p;for(;y--;)if(s=v,g=t[y],c)for(;s--&&!(p=it(n[s],g,e,o,i,f)););else if(!(p=it(n[y],g,e,o,i,f)))break;
}}function tt(n){var t,r;return n&&oe.call(n)==B&&(t=n.constructor,!ft(t)||t instanceof t)?(K(n,function(n,t){r=t}),r===e||ee.call(n,r)):a}function et(n,t,e){t||(t=0),typeof e=="undefined"&&(e=n?n.length:0);var r=-1;e=e-t||0;for(var u=Tt(0>e?0:e);++r<e;)u[r]=n[t+r];return u}function rt(n){return we[n]}function ut(n,t,r,o,i,f){var c=n;if(typeof t!="boolean"&&t!=u&&(o=r,r=t,t=a),typeof r=="function"){if(r=typeof o=="undefined"?r:G.createCallback(r,o,1),c=r(c),typeof c!="undefined")return c;c=n}if(o=ct(c)){var l=oe.call(c);
if(!T[l])return c;var p=_e(c)}if(!o||!t)return o?p?et(c):U({},c):c;switch(o=me[l],l){case I:case N:return new o(+c);case $:case R:return new o(c);case F:return o(c.source,m.exec(c))}for(i||(i=[]),f||(f=[]),l=i.length;l--;)if(i[l]==n)return f[l];return c=p?o(c.length):{},p&&(ee.call(n,"index")&&(c.index=n.index),ee.call(n,"input")&&(c.input=n.input)),i.push(n),f.push(c),(p?mt:P)(n,function(n,u){c[u]=ut(n,t,r,e,i,f)}),c}function at(n){var t=[];return K(n,function(n,e){ft(n)&&t.push(e)}),t.sort()}function ot(n){for(var t=-1,e=ke(n),r=e.length,u={};++t<r;){var a=e[t];
u[n[a]]=a}return u}function it(n,t,e,o,i,f){var c=e===l;if(typeof e=="function"&&!c){e=G.createCallback(e,o,2);var p=e(n,t);if(typeof p!="undefined")return!!p}if(n===t)return 0!==n||1/n==1/t;var s=typeof n,v=typeof t;if(n===n&&(!n||"function"!=s&&"object"!=s)&&(!t||"function"!=v&&"object"!=v))return a;if(n==u||t==u)return n===t;if(v=oe.call(n),s=oe.call(t),v==E&&(v=B),s==E&&(s=B),v!=s)return a;switch(v){case I:case N:return+n==+t;case $:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case F:case R:return n==Vt(t)
}if(s=v==S,!s){if(ee.call(n,"__wrapped__")||ee.call(t,"__wrapped__"))return it(n.__wrapped__||n,t.__wrapped__||t,e,o,i,f);if(v!=B)return a;var v=n.constructor,g=t.constructor;if(v!=g&&(!ft(v)||!(v instanceof v&&ft(g)&&g instanceof g)))return a}for(i||(i=[]),f||(f=[]),v=i.length;v--;)if(i[v]==n)return f[v]==t;var y=0,p=r;if(i.push(n),f.push(t),s){if(v=n.length,y=t.length,p=y==n.length,!p&&!c)return p;for(;y--;)if(s=v,g=t[y],c)for(;s--&&!(p=it(n[s],g,e,o,i,f)););else if(!(p=it(n[y],g,e,o,i,f)))break;
return p}return K(t,function(t,r,u){return ee.call(u,r)?(y++,p=ee.call(n,r)&&it(n[r],t,e,o,i,f)):void 0}),p&&!c&&K(n,function(n,t,e){return ee.call(e,t)?p=-1<--y:void 0}),p}function ft(n){return typeof n=="function"}function ct(n){return!(!n||!q[typeof n])}function lt(n){return typeof n=="number"||oe.call(n)==$}function pt(n){return typeof n=="string"||oe.call(n)==R}function st(n,t,e){var r=arguments,u=0,a=2;if(!ct(n))return n;if(e===l)var o=r[3],i=r[4],c=r[5];else i=[],c=[],typeof e!="number"&&(a=r.length),3<a&&"function"==typeof r[a-2]?o=G.createCallback(r[--a-1],r[a--],2):2<a&&"function"==typeof r[a-1]&&(o=r[--a]);
for(;++u<a;)(_e(r[u])?mt:P)(r[u],function(t,e){var r,u,a=t,p=n[e];if(t&&((u=_e(t))||f(t))){for(a=i.length;a--;)if(r=i[a]==t){p=c[a];break}if(!r){var s;o&&(a=o(p,t),s=typeof a!="undefined")&&(p=a),s||(p=u?_e(p)?p:[]:f(p)?p:{}),i.push(t),c.push(p),s||(p=st(p,t,l,o,i,c))}}else o&&(a=o(p,t),typeof a=="undefined"&&(a=t)),typeof a!="undefined"&&(p=a);n[e]=p});return n}function vt(n){for(var t=-1,e=ke(n),r=e.length,u=Tt(r);++t<r;)u[t]=n[e[t]];return u}function gt(n,t,e){var r=-1,u=n?n.length:0,o=a;return e=(0>e?ve(0,u+e):e)||0,u&&typeof u=="number"?o=-1<(pt(n)?n.indexOf(t,e):H(n,t,e)):P(n,function(n){return++r<e?void 0:!(o=n===t)
}),o}function yt(n,t,e){var u=r;t=G.createCallback(t,e),e=-1;var a=n?n.length:0;if(typeof a=="number")for(;++e<a&&(u=!!t(n[e],e,n)););else P(n,function(n,e,r){return u=!!t(n,e,r)});return u}function ht(n,t,e){var r=[];t=G.createCallback(t,e),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u;){var a=n[e];t(a,e,n)&&r.push(a)}else P(n,function(n,e,u){t(n,e,u)&&r.push(n)});return r}function bt(n,t,e){t=G.createCallback(t,e),e=-1;var r=n?n.length:0;if(typeof r!="number"){var u;return P(n,function(n,e,r){return t(n,e,r)?(u=n,a):void 0