mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +00:00
Tweak support property comments and nonEnumArgs test.
This commit is contained in:
22
dist/lodash.compat.js
vendored
22
dist/lodash.compat.js
vendored
@@ -861,7 +861,7 @@
|
||||
|
||||
/**
|
||||
* Detect if functions can be decompiled by `Function#toString`
|
||||
* (all but PS3 and older Opera mobile browsers & avoided in Windows 8 apps).
|
||||
* (all but PS3 and older Opera mobile browsers; forced `false` for Windows 8 apps).
|
||||
*
|
||||
* @memberOf _.support
|
||||
* @type boolean
|
||||
@@ -925,8 +925,8 @@
|
||||
/**
|
||||
* Detect lack of support for accessing string characters by index.
|
||||
*
|
||||
* IE < 8 can't access characters by index and IE 8 can only access
|
||||
* characters by index on string literals.
|
||||
* IE < 8 can't access characters by index. IE 8 can only access characters
|
||||
* by index on string literals, not string objects.
|
||||
*
|
||||
* @memberOf _.support
|
||||
* @type boolean
|
||||
@@ -960,20 +960,20 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Detect if `arguments` object indexes are non-enumerable
|
||||
* (Firefox < 4, IE < 9, PhantomJS, Safari < 5.1).
|
||||
* Detect if `arguments` object indexes are non-enumerable.
|
||||
*
|
||||
* Chrome < 25 and Node.js < 0.11.0 will treat `arguments` object indexes
|
||||
* that exceed their function's formal parameters and whose associated
|
||||
* values are `0` as non-enumerable and incorrectly return `false` from
|
||||
* `Object#hasOwnProperty`.
|
||||
* In Firefox < 4, IE < 9, PhantomJS, and Safari < 5.1 `arguments` object
|
||||
* indexes are non-enumerable. Chrome < 25 and Node.js < 0.11.0 treat
|
||||
* `arguments` object indexes as non-enumerable and fail `hasOwnProperty`
|
||||
* checks for indexes that exceed their function's formal parameters with
|
||||
* associated values of `0`.
|
||||
*
|
||||
* @memberOf _.support
|
||||
* @type boolean
|
||||
*/
|
||||
try {
|
||||
support.nonEnumArgs = !(argsKey == '1' && hasOwnProperty.call(arguments, '1') &&
|
||||
propertyIsEnumerable.call(arguments, '1'));
|
||||
support.nonEnumArgs = !(argsKey == '1' && hasOwnProperty.call(arguments, argsKey) &&
|
||||
propertyIsEnumerable.call(arguments, argsKey));
|
||||
} catch(e) {
|
||||
support.nonEnumArgs = true;
|
||||
}
|
||||
|
||||
2
dist/lodash.compat.min.js
vendored
2
dist/lodash.compat.min.js
vendored
@@ -37,7 +37,7 @@ for(var f in n)l&&"prototype"==f||a&&("message"==f||"name"==f)||i&&(t=+f,-1<t&&t
|
||||
}}t=t?_t.defaults(mt.Object(),t,_t.pick(mt,H)):mt;var Re=t.Array,Ne=t.Boolean,Te=t.Date,Le=t.Error,We=t.Function,Fe=t.Math,$e=t.Number,Pe=t.Object,ze=t.RegExp,De=t.String,Be=t.TypeError,qe=Re.prototype,Ue=Le.prototype,Ze=Pe.prototype,Ke=De.prototype,Me=(Me=t.window)&&Me.document,Ve=t._,Xe=Fe.pow(2,53)-1,Ye=Ze.toString,Ge=ze("^"+Ce(Ye).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=Fe.ceil,Je=t.clearTimeout,Qe=Fe.floor,nr=We.prototype.toString,tr=Lt(tr=Pe.getPrototypeOf)&&tr,er=Ze.hasOwnProperty,rr=qe.push,ur=Ze.propertyIsEnumerable,or=Lt(or=t.Set)&&or,ir=t.setTimeout,ar=qe.splice,lr=qe.unshift,fr=function(){try{var n={},t=Lt(t=Pe.defineProperty)&&t,e=t(n,n,n)&&t
|
||||
}catch(r){}return e}(),cr=Lt(cr=Ke.contains)&&cr,sr=Lt(sr=Pe.create)&&sr,pr=Lt(pr=Re.isArray)&&pr,gr=t.isFinite,hr=t.isNaN,vr=Lt(vr=Pe.keys)&&vr,yr=Fe.max,mr=Fe.min,dr=Lt(dr=Te.now)&&dr,br=t.parseInt,_r=Fe.random,wr=Lt(wr=Ke.trim)&&!wr.call(G)&&wr,xr=Lt(xr=Ke.trimLeft)&&!xr.call(G)&&xr,Cr=Lt(Cr=Ke.trimRight)&&!Cr.call(G)&&Cr,jr={};jr[nt]=Re,jr[tt]=Ne,jr[et]=Te,jr[ut]=We,jr[it]=Pe,jr[ot]=$e,jr[at]=ze,jr[lt]=De;var kr={};kr[nt]=kr[et]=kr[ot]={constructor:true,toLocaleString:true,toString:true,valueOf:true},kr[tt]=kr[lt]={constructor:true,toString:true,valueOf:true},kr[rt]=kr[ut]=kr[at]={constructor:true,toString:true},kr[it]={constructor:true},function(){for(var n=J.length;n--;){var t,e=J[n];
|
||||
for(t in kr)er.call(kr,t)&&!er.call(kr[t],e)&&(kr[t][e]=false)}}(),i.prototype=o.prototype;var Or=o.support={};!function(x){var n=function(){this.x=1},e={0:1,length:1},r=[];n.prototype={valueOf:1,y:1};for(var u in new n)r.push(u);for(var o in arguments);for(var i in"x");Or.argsClass=Ye.call(arguments)==Q,Or.argsObject=arguments.constructor==Pe&&!(arguments instanceof Re),Or.enumErrorProps=ur.call(Ue,"message")||ur.call(Ue,"name"),Or.enumPrototypes=ur.call(n,"prototype"),Or.funcDecomp=!Lt(t.WinRTError)&&V.test(_),Or.funcNames=typeof We.name=="string",Or.nonEnumStrings="0"!=i,Or.nonEnumShadows=!/valueOf/.test(r),Or.ownLast="x"!=r[0],Or.spliceObjects=(ar.call(e,0,1),!e[0]),Or.unindexedChars="xx"!="x"[0]+Pe("x")[0];
|
||||
try{Or.dom=11===Me.createDocumentFragment().nodeType}catch(a){Or.dom=false}try{Or.nodeClass=!(Ye.call(undefined)==it&&!({toString:0}+""))}catch(l){Or.nodeClass=true}try{Or.nonEnumArgs=!("1"==o&&er.call(arguments,"1")&&ur.call(arguments,"1"))}catch(f){Or.nonEnumArgs=true}}(0,0),o.templateSettings={escape:$,evaluate:P,interpolate:z,variable:"",imports:{_:o}},sr||(d=function(){function n(){}return function(e){if(ye(e)){n.prototype=e;var r=new n;n.prototype=null}return r||t.Object()}}());var Er=or&&function(n){var t=new or,e=n?n.length:0;for(t.push=t.add;e--;)t.push(n[e]);
|
||||
try{Or.dom=11===Me.createDocumentFragment().nodeType}catch(a){Or.dom=false}try{Or.nodeClass=!(Ye.call(undefined)==it&&!({toString:0}+""))}catch(l){Or.nodeClass=true}try{Or.nonEnumArgs=!("1"==o&&er.call(arguments,o)&&ur.call(arguments,o))}catch(f){Or.nonEnumArgs=true}}(0,0),o.templateSettings={escape:$,evaluate:P,interpolate:z,variable:"",imports:{_:o}},sr||(d=function(){function n(){}return function(e){if(ye(e)){n.prototype=e;var r=new n;n.prototype=null}return r||t.Object()}}());var Er=or&&function(n){var t=new or,e=n?n.length:0;for(t.push=t.add;e--;)t.push(n[e]);
|
||||
return t},Ar=fr?function(n,t){st.value=t,fr(n,S,st)}:Se,Sr=It(function(n,t,e){er.call(n,e)?n[e]++:n[e]=1}),Ir=It(function(n,t,e){er.call(n,e)?n[e].push(t):n[e]=[t]}),Rr=It(function(n,t,e){n[e]=t}),Nr=It(function(n,t,e){n[e?0:1].push(t)},true),Tr=te;Or.argsClass||(ge=function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&er.call(n,"callee")&&!ur.call(n,"callee")||false});var Lr=pr||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Ye.call(n)==nt||false};Or.dom||(he=function(n){return n&&typeof n=="object"&&1===n.nodeType&&!Wr(n)||false
|
||||
}),ve(/x/)&&(ve=function(n){return typeof n=="function"&&Ye.call(n)==ut});var Wr=tr?function(n){if(!n||Ye.call(n)!=it||!Or.argsClass&&ge(n))return false;var t=n.valueOf,e=Lt(t)&&(e=tr(t))&&tr(e);return e?n==e||tr(n)==e:Wt(n)}:Wt,Fr=vr?function(n){var t=n?n.length:0;return typeof t=="number"&&0<t?Ft(n):ye(n)?vr(n):[]}:Ft,$r=f(function(n,t,e){return!e&&R.test(t)?n+t.toLowerCase():n+(t.charAt(0)[e?"toUpperCase":"toLowerCase"]()+t.slice(1))}),Pr=f(function(n,t,e){return n+(e?"-":"")+t.toLowerCase()}),zr=f(function(n,t,e){return n+(e?"_":"")+t.toLowerCase()
|
||||
}),Dr=wr?function(n,t){return null==n?"":null==t?wr.call(n):h(n,t)}:h,Br=xr?function(n,t){return null==n?"":null==t?xr.call(n):v(n,t)}:v,qr=Cr?function(n,t){return null==n?"":null==t?Cr.call(n):y(n,t)}:y,Ur=dr||function(){return(new Te).getTime()},Zr=8==br(G+"08")?br:function(n,t){return n=Dr(n),br(n,+t||(U.test(n)?16:10))};return o.after=function(n,t){if(!ve(t))throw new Be;return n=gr(n=+n)?n:0,function(){return 1>--n?t.apply(this,arguments):void 0}},o.assign=ce,o.at=function(n,t){var e=arguments,r=-1,u=yt(e,true,false,1),o=u.length,i=typeof t;
|
||||
|
||||
18
dist/lodash.js
vendored
18
dist/lodash.js
vendored
@@ -773,7 +773,7 @@
|
||||
|
||||
/**
|
||||
* Detect if functions can be decompiled by `Function#toString`
|
||||
* (all but PS3 and older Opera mobile browsers & avoided in Windows 8 apps).
|
||||
* (all but PS3 and older Opera mobile browsers; forced `false` for Windows 8 apps).
|
||||
*
|
||||
* @memberOf _.support
|
||||
* @type boolean
|
||||
@@ -801,20 +801,20 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Detect if `arguments` object indexes are non-enumerable
|
||||
* (Firefox < 4, IE < 9, PhantomJS, Safari < 5.1).
|
||||
* Detect if `arguments` object indexes are non-enumerable.
|
||||
*
|
||||
* Chrome < 25 and Node.js < 0.11.0 will treat `arguments` object indexes
|
||||
* that exceed their function's formal parameters and whose associated
|
||||
* values are `0` as non-enumerable and incorrectly return `false` from
|
||||
* `Object#hasOwnProperty`.
|
||||
* In Firefox < 4, IE < 9, PhantomJS, and Safari < 5.1 `arguments` object
|
||||
* indexes are non-enumerable. Chrome < 25 and Node.js < 0.11.0 treat
|
||||
* `arguments` object indexes as non-enumerable and fail `hasOwnProperty`
|
||||
* checks for indexes that exceed their function's formal parameters with
|
||||
* associated values of `0`.
|
||||
*
|
||||
* @memberOf _.support
|
||||
* @type boolean
|
||||
*/
|
||||
try {
|
||||
support.nonEnumArgs = !(argsKey == '1' && hasOwnProperty.call(arguments, '1') &&
|
||||
propertyIsEnumerable.call(arguments, '1'));
|
||||
support.nonEnumArgs = !(argsKey == '1' && hasOwnProperty.call(arguments, argsKey) &&
|
||||
propertyIsEnumerable.call(arguments, argsKey));
|
||||
} catch(e) {
|
||||
support.nonEnumArgs = true;
|
||||
}
|
||||
|
||||
2
dist/lodash.min.js
vendored
2
dist/lodash.min.js
vendored
@@ -35,7 +35,7 @@ return o}function de(n,t,e){var r={};if(typeof t!="function")for(var u=-1,i=ht(a
|
||||
}function ke(n){return n}function je(n){n||(n={});var t=Rr(n),e=t.length,r=t[0],u=n[r];return 1!=e||u!==u||he(u)?function(r){for(var u=e,o=false;u--&&(o=t[u],o=He.call(r,o)&&wt(r[o],n[o],null,true)););return o}:function(n){return He.call(n,r)?(n=n[r],u===n&&(0!==u||1/u==1/n)):false}}function Ce(n,t,e){var r=true,u=t&&fe(t);t&&(e||u.length)||(null==e&&(e=t),t=n,n=o,u=fe(t)),false===e?r=false:he(e)&&"chain"in e&&(r=e.chain),e=-1;for(var i=se(n),a=u?u.length:0;++e<a;){var l=u[e],f=n[l]=t[l];i&&(n.prototype[l]=function(t){return function(){var e=this.__chain__,u=this.__wrapped__,o=[u];
|
||||
if(Je.apply(o,arguments),o=t.apply(n,o),r||e){if(u===o&&he(o))return this;o=new n(o),o.__chain__=e}return o}}(f))}}function Ae(){}function Oe(n){return function(t){return null==t?_:t[n]}}t=t?mt.defaults(gt.Object(),t,mt.pick(gt,G)):gt;var Ee=t.Array,Ie=t.Boolean,Re=t.Date,Ne=t.Function,Se=t.Math,Te=t.Number,We=t.Object,Fe=t.RegExp,$e=t.String,Le=t.TypeError,ze=Ee.prototype,De=We.prototype,Be=$e.prototype,qe=(qe=t.window)&&qe.document,Ue=t._,Ze=Se.pow(2,53)-1,Pe=De.toString,Ke=Fe("^"+_e(Pe).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Me=Se.ceil,Ve=t.clearTimeout,Xe=Se.floor,Ye=Ne.prototype.toString,Ge=Nt(Ge=We.getPrototypeOf)&&Ge,He=De.hasOwnProperty,Je=ze.push,Qe=De.propertyIsEnumerable,nr=Nt(nr=t.Set)&&nr,tr=t.setTimeout,er=ze.splice,rr=ze.unshift,ur=function(){try{var n={},t=Nt(t=We.defineProperty)&&t,e=t(n,n,n)&&t
|
||||
}catch(r){}return e}(),or=Nt(or=Be.contains)&&or,ir=Nt(ir=We.create)&&ir,ar=Nt(ar=Ee.isArray)&&ar,lr=t.isFinite,fr=t.isNaN,cr=Nt(cr=We.keys)&&cr,pr=Se.max,sr=Se.min,hr=Nt(hr=Re.now)&&hr,gr=t.parseInt,vr=Se.random,yr=Nt(yr=Be.trim)&&!yr.call(Y)&&yr,mr=Nt(mr=Be.trimLeft)&&!mr.call(Y)&&mr,dr=Nt(dr=Be.trimRight)&&!dr.call(Y)&&dr,br={};br[J]=Ee,br[Q]=Ie,br[nt]=Re,br[tt]=Ne,br[rt]=We,br[et]=Te,br[ut]=Fe,br[ot]=$e,i.prototype=o.prototype;var _r=o.support={};!function(x){for(var n in arguments);_r.funcDecomp=!Nt(t.WinRTError)&&M.test(b),_r.funcNames=typeof Ne.name=="string";
|
||||
try{_r.dom=11===qe.createDocumentFragment().nodeType}catch(e){_r.dom=false}try{_r.nonEnumArgs=!("1"==n&&He.call(arguments,"1")&&Qe.call(arguments,"1"))}catch(r){_r.nonEnumArgs=true}}(0,0),o.templateSettings={escape:$,evaluate:L,interpolate:z,variable:"",imports:{_:o}},ir||(m=function(){function n(){}return function(e){if(he(e)){n.prototype=e;var r=new n;n.prototype=null}return r||t.Object()}}());var wr=nr&&function(n){var t=new nr,e=n?n.length:0;for(t.push=t.add;e--;)t.push(n[e]);return t},xr=ur?function(n,t){lt.value=t,ur(n,E,lt)
|
||||
try{_r.dom=11===qe.createDocumentFragment().nodeType}catch(e){_r.dom=false}try{_r.nonEnumArgs=!("1"==n&&He.call(arguments,n)&&Qe.call(arguments,n))}catch(r){_r.nonEnumArgs=true}}(0,0),o.templateSettings={escape:$,evaluate:L,interpolate:z,variable:"",imports:{_:o}},ir||(m=function(){function n(){}return function(e){if(he(e)){n.prototype=e;var r=new n;n.prototype=null}return r||t.Object()}}());var wr=nr&&function(n){var t=new nr,e=n?n.length:0;for(t.push=t.add;e--;)t.push(n[e]);return t},xr=ur?function(n,t){lt.value=t,ur(n,E,lt)
|
||||
}:Ae,kr=Ot(function(n,t,e){He.call(n,e)?n[e]++:n[e]=1}),jr=Ot(function(n,t,e){He.call(n,e)?n[e].push(t):n[e]=[t]}),Cr=Ot(function(n,t,e){n[e]=t}),Ar=Ot(function(n,t,e){n[e?0:1].push(t)},true),Or=Jt,Er=ar||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Pe.call(n)==J||false};_r.dom||(pe=function(n){return n&&typeof n=="object"&&1===n.nodeType&&!Ir(n)||false});var Ir=Ge?function(n){if(!n||Pe.call(n)!=rt)return false;var t=n.valueOf,e=Nt(t)&&(e=Ge(t))&&Ge(e);return e?n==e||Ge(n)==e:St(n)}:St,Rr=cr?function(n){var t=n?n.length:0;
|
||||
return typeof t=="number"&&0<t?Tt(n):he(n)?cr(n):[]}:Tt,Nr=f(function(n,t,e){return!e&&R.test(t)?n+t.toLowerCase():n+(t.charAt(0)[e?"toUpperCase":"toLowerCase"]()+t.slice(1))}),Sr=f(function(n,t,e){return n+(e?"-":"")+t.toLowerCase()}),Tr=f(function(n,t,e){return n+(e?"_":"")+t.toLowerCase()}),Wr=yr?function(n,t){return null==n?"":null==t?yr.call(n):h(n,t)}:h,Fr=mr?function(n,t){return null==n?"":null==t?mr.call(n):g(n,t)}:g,$r=dr?function(n,t){return null==n?"":null==t?dr.call(n):v(n,t)}:v,Lr=hr||function(){return(new Re).getTime()
|
||||
},zr=8==gr(Y+"08")?gr:function(n,t){return n=Wr(n),gr(n,+t||(U.test(n)?16:10))};return o.after=function(n,t){if(!se(t))throw new Le;return n=lr(n=+n)?n:0,function(){return 1>--n?t.apply(this,arguments):void 0}},o.assign=ae,o.at=function(n,t){var e=arguments,r=-1,u=ht(e,true,false,1),o=u.length,i=typeof t;for("number"!=i&&"string"!=i||!e[2]||e[2][t]!==n||(o=1),e=Ee(o);++r<o;)e[r]=n[u[r]];return e},o.bind=ue,o.bindAll=function(n){for(var t=1<arguments.length?ht(arguments,true,false,1):fe(n),e=-1,r=t.length;++e<r;){var u=t[e];
|
||||
|
||||
22
lodash.js
22
lodash.js
@@ -860,7 +860,7 @@
|
||||
|
||||
/**
|
||||
* Detect if functions can be decompiled by `Function#toString`
|
||||
* (all but PS3 and older Opera mobile browsers & avoided in Windows 8 apps).
|
||||
* (all but PS3 and older Opera mobile browsers; forced `false` for Windows 8 apps).
|
||||
*
|
||||
* @memberOf _.support
|
||||
* @type boolean
|
||||
@@ -924,8 +924,8 @@
|
||||
/**
|
||||
* Detect lack of support for accessing string characters by index.
|
||||
*
|
||||
* IE < 8 can't access characters by index and IE 8 can only access
|
||||
* characters by index on string literals.
|
||||
* IE < 8 can't access characters by index. IE 8 can only access characters
|
||||
* by index on string literals, not string objects.
|
||||
*
|
||||
* @memberOf _.support
|
||||
* @type boolean
|
||||
@@ -959,20 +959,20 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Detect if `arguments` object indexes are non-enumerable
|
||||
* (Firefox < 4, IE < 9, PhantomJS, Safari < 5.1).
|
||||
* Detect if `arguments` object indexes are non-enumerable.
|
||||
*
|
||||
* Chrome < 25 and Node.js < 0.11.0 will treat `arguments` object indexes
|
||||
* that exceed their function's formal parameters and whose associated
|
||||
* values are `0` as non-enumerable and incorrectly return `false` from
|
||||
* `Object#hasOwnProperty`.
|
||||
* In Firefox < 4, IE < 9, PhantomJS, and Safari < 5.1 `arguments` object
|
||||
* indexes are non-enumerable. Chrome < 25 and Node.js < 0.11.0 treat
|
||||
* `arguments` object indexes as non-enumerable and fail `hasOwnProperty`
|
||||
* checks for indexes that exceed their function's formal parameters with
|
||||
* associated values of `0`.
|
||||
*
|
||||
* @memberOf _.support
|
||||
* @type boolean
|
||||
*/
|
||||
try {
|
||||
support.nonEnumArgs = !(argsKey == '1' && hasOwnProperty.call(arguments, '1') &&
|
||||
propertyIsEnumerable.call(arguments, '1'));
|
||||
support.nonEnumArgs = !(argsKey == '1' && hasOwnProperty.call(arguments, argsKey) &&
|
||||
propertyIsEnumerable.call(arguments, argsKey));
|
||||
} catch(e) {
|
||||
support.nonEnumArgs = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user