Cleanup arrayReg and splice references.

This commit is contained in:
John-David Dalton
2013-12-29 15:49:26 -06:00
parent 95be8b2cf3
commit 106fa64060
7 changed files with 43 additions and 70 deletions

2
dist/lodash.min.js vendored
View File

@@ -27,7 +27,7 @@ for(var i=n.length;++e<i;){var a=n[e];a>o&&(o=a)}}else t=null==t&&Rt(n)?u:m.crea
}function Jt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,e=n?Wt(Ze(n,"length")):0,r=oe(0>e?0:e);++t<e;)r[t]=Ze(n,t);return r}function Qt(n,t){var e=-1,r=n?n.length:0,u={};for(t||!r||Ge(n[0])||(t=[]);++e<r;){var o=n[e];t?u[o]=t[e]:o&&(u[o[0]]=o[1])}return u}function Xt(n,t){return 2<arguments.length?vt(n,17,h(arguments,2),null,t):vt(n,1,null,null,t)}function Yt(n,t,e){function r(){c&&ke(c),i=c=p=g,(v||h!==t)&&(s=nr(),a=n.apply(l,o),c||i||(o=l=null))}function u(){var e=t-(nr()-f);0<e?c=Ie(u,e):(i&&ke(i),e=p,i=c=p=g,e&&(s=nr(),a=n.apply(l,o),c||i||(o=l=null)))
}var o,i,a,f,l,c,p,s=0,h=false,v=true;if(!Et(n))throw new ve;if(t=We(0,t)||0,true===e)var y=true,v=false;else Nt(e)&&(y=e.leading,h="maxWait"in e&&(We(t,e.maxWait)||0),v="trailing"in e?e.trailing:v);return function(){if(o=arguments,f=nr(),l=this,p=v&&(c||!y),false===h)var e=y&&!c;else{i||y||(s=f);var g=h-(f-s),m=0>=g;m?(i&&(i=ke(i)),s=f,a=n.apply(l,o)):i||(i=Ie(r,g))}return m&&c?c=ke(c):c||t===h||(c=Ie(u,t)),e&&(m=true,a=n.apply(l,o)),!m||c||i||(o=l=null),a}}function Zt(n){return n}function ne(n){n||(n={});var t=He(n),e=t[0],r=n[e];
return 1!=t.length||r!==r||Nt(r)?function(e){for(var r=t.length,u=false;r--&&(u=lt(e[t[r]],n[t[r]],null,true)););return u}:function(n){return n=n[e],r===n&&(0!==r||1/r==1/n)}}function te(n,t,e){var r=true,u=t&&Ct(t);t&&(e||u.length)||(null==e&&(e=t),o=w,t=n,n=m,u=Ct(t)),false===e?r=false:Nt(e)&&"chain"in e&&(r=e.chain);var o=n,i=Et(o);Ft(u,function(e){var u=n[e]=t[e];i&&(o.prototype[e]=function(){var t=this.__chain__,e=this.__wrapped__,i=[e];if(Ne.apply(i,arguments),i=u.apply(n,i),r||t){if(e===i&&Nt(i))return this;
i=new o(i),i.__chain__=t}return i})})}function ee(){}function re(n){return function(t){return t[n]}}function ue(){return this.__wrapped__}n=n?ot.defaults(tt.Object(),n,ot.pick(tt,q)):tt;var oe=n.Array,ie=n.Boolean,ae=n.Date,fe=n.Function,le=n.Math,ce=n.Number,pe=n.Object,se=n.RegExp,he=n.String,ve=n.TypeError,ge=[],ye=pe.prototype,me=he.prototype,be=(be=n.window)&&be.document,de=n._,_e=ye.toString,we=se("^"+he(_e).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),je=le.ceil,ke=n.clearTimeout,xe=le.floor,Ce=fe.prototype.toString,Oe=mt(Oe=pe.getPrototypeOf)&&Oe,Ee=ye.hasOwnProperty,Ne=ge.push,Ie=n.setTimeout,Re=ge.splice,Se=ge.unshift,Te=function(){try{var n={},t=mt(t=pe.defineProperty)&&t,e=t(n,n,n)&&t
i=new o(i),i.__chain__=t}return i})})}function ee(){}function re(n){return function(t){return t[n]}}function ue(){return this.__wrapped__}n=n?ot.defaults(tt.Object(),n,ot.pick(tt,q)):tt;var oe=n.Array,ie=n.Boolean,ae=n.Date,fe=n.Function,le=n.Math,ce=n.Number,pe=n.Object,se=n.RegExp,he=n.String,ve=n.TypeError,ge=oe.prototype,ye=pe.prototype,me=he.prototype,be=(be=n.window)&&be.document,de=n._,_e=ye.toString,we=se("^"+he(_e).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),je=le.ceil,ke=n.clearTimeout,xe=le.floor,Ce=fe.prototype.toString,Oe=mt(Oe=pe.getPrototypeOf)&&Oe,Ee=ye.hasOwnProperty,Ne=ge.push,Ie=n.setTimeout,Re=ge.splice,Se=ge.unshift,Te=function(){try{var n={},t=mt(t=pe.defineProperty)&&t,e=t(n,n,n)&&t
}catch(r){}return e}(),Ae=mt(Ae=me.contains)&&Ae,De=mt(De=pe.create)&&De,$e=mt($e=oe.isArray)&&$e,Fe=n.isFinite,Be=n.isNaN,qe=mt(qe=pe.keys)&&qe,We=le.max,ze=le.min,Pe=n.parseInt,Ke=le.random,Le={};Le[z]=oe,Le[P]=ie,Le[K]=ae,Le[L]=fe,Le[V]=pe,Le[M]=ce,Le[U]=se,Le[G]=he,w.prototype=m.prototype;var Me=m.support={};Me.funcDecomp=!mt(n.WinRTError)&&F.test(v),Me.funcNames=typeof fe.name=="string";try{Me.dom=11===be.createDocumentFragment().nodeType}catch(Ve){Me.dom=false}m.templateSettings={escape:I,evaluate:R,interpolate:S,variable:"",imports:{_:m}},De||(rt=function(){function t(){}return function(e){if(Nt(e)){t.prototype=e;
var r=new t;t.prototype=null}return r||n.Object()}}());var Ue=Te?function(n,t){Q.value=t,Te(n,"__bindData__",Q)}:ee,Ge=$e||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&_e.call(n)==z||false},He=qe?function(n){return Nt(n)?qe(n):[]}:y;Me.dom||(Ot=function(n){return n&&typeof n=="object"&&1===n.nodeType&&!Je(n)||false});var Je=Oe?function(n){if(!n||_e.call(n)!=V)return false;var t=n.valueOf,e=mt(t)&&(e=Oe(t))&&Oe(e);return e?n==e||Oe(n)==e:bt(n)}:bt,Qe=ht(function(n,t,e){Ee.call(n,e)?n[e]++:n[e]=1
}),Xe=ht(function(n,t,e){(Ee.call(n,e)?n[e]:n[e]=[]).push(t)}),Ye=ht(function(n,t,e){n[e]=t}),Ze=qt,nr=mt(nr=ae.now)&&nr||function(){return(new ae).getTime()},tr=8==Pe(j+"08")?Pe:function(n,t){return Pe(Rt(n)?n.replace(D,""):n,t||0)};return m.after=function(n,t){if(!Et(t))throw new ve;return function(){return 1>--n?t.apply(this,arguments):void 0}},m.assign=wt,m.at=function(n){for(var t=arguments,e=-1,r=ft(t,true,false,1),t=t[2]&&t[2][t[1]]===n?1:r.length,u=oe(t);++e<t;)u[e]=n[r[e]];return u},m.bind=Xt,m.bindAll=function(n){for(var t=1<arguments.length?ft(arguments,true,false,1):Ct(n),e=-1,r=t.length;++e<r;){var u=t[e];