Avoid using a unique key for keyPrefix as it causes issues when lodash is modularized into individual npm packages. [closes #446]

This commit is contained in:
John-David Dalton
2014-01-09 01:29:05 -08:00
parent cb22fb54e8
commit a36a5363b4
7 changed files with 38 additions and 38 deletions

2
dist/lodash.min.js vendored
View File

@@ -53,6 +53,6 @@ l in n&&(u[l]=n[l])}else t=i.createCallback(t,r,3),e(n,function(n,r,e){t(n,r,e)&
}),l+="';",f=r=r.variable,f||(r="obj",l="with("+r+"){"+l+"}"),l=(u?l.replace(I,""):l).replace(S,"$1").replace(T,"$1;"),l="function("+r+"){"+(f?"":r+"||("+r+"={});")+"var __t,__p='',__e=_.escape"+(u?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+l+"return __p}";try{var c=lr(e,"return "+l).apply(k,o)}catch(s){throw s.source=l,s}return t?c(t):(c.source=l,c)},i.trim=ue,i.trimLeft=oe,i.trimRight=ie,i.unescape=function(n){return null==n?"":(n=vr(n),0>n.indexOf(";")?n:n.replace(D,w))
},i.uniqueId=function(n){var t=++O;return vr(null==n?"":n)+t},i.all=It,i.any=Lt,i.detect=Tt,i.findWhere=Tt,i.foldl=qt,i.foldr=Wt,i.include=Rt,i.inject=qt,er(function(){var n={};return Vt(i,function(t,r){i.prototype[r]||(n[r]=t)}),n}(),false),i.first=wt,i.last=function(n,t,r){var e=0,u=n?n.length:0;if(typeof t!="number"&&null!=t){var o=u;for(t=i.createCallback(t,r,3);o--&&t(n[o],o,n);)e++}else if(e=t,null==e||r)return n?n[u-1]:k;return e=u-e,xt(n,0<e?e:0)},i.sample=function(n,t,r){return n&&typeof n.length!="number"&&(n=nr(n)),null==t||r?n?n[st(0,n.length-1)]:k:(n=zt(n),n.length=Lr(zr(0,t),n.length),n)
},i.take=wt,i.head=wt,Vt(i,function(n,t){var r="sample"!==t;i.prototype[t]||(i.prototype[t]=function(t,e){var u=this.__chain__,o=n(this.__wrapped__,t,e);return u||null!=t&&(!e||r&&typeof t=="function")?new d(o,u):o})}),i.VERSION="2.4.1",i.prototype.chain=function(){return this.__chain__=true,this},i.prototype.toString=function(){return vr(this.__wrapped__)},i.prototype.value=Nt,i.prototype.valueOf=Nt,Dt(["join","pop","shift"],function(n){var t=yr[n];i.prototype[n]=function(){var n=this.__chain__,r=t.apply(this.__wrapped__,arguments);
return n?new d(r,n):r}}),Dt(["push","reverse","sort","unshift"],function(n){var t=yr[n];i.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),Dt(["concat","splice"],function(n){var t=yr[n];i.prototype[n]=function(){return new d(t.apply(this.__wrapped__,arguments),this.__chain__)}}),i}var k,x=[],C=[],O=0,A=+new Date+"",E=75,N=40,R=" \t\x0B\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000",I=/\b__p\+='';/g,S=/\b(__p\+=)''\+/g,T=/(__e\(.*?\)|\b__t\))\+'';/g,D=/&(?:amp|lt|gt|quot|#39);/g,F=/[&<>"']/g,$=/<%-([\s\S]+?)%>/g,B=/<%([\s\S]+?)%>/g,q=/<%=([\s\S]+?)%>/g,W=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,z=/\w*$/,L=/^\s*function[ \n\r\t]+\w/,P=/^0[xX]/,K=/($^)/,M=/\bthis\b/,U=/['\n\r\t\u2028\u2029\\]/g,V="Array Boolean Date Function Math Number Object RegExp String _ clearTimeout document isFinite isNaN parseInt setTimeout TypeError window WinRTError".split(" "),X="[object Arguments]",G="[object Array]",H="[object Boolean]",J="[object Date]",Q="[object Function]",Y="[object Number]",Z="[object Object]",nt="[object RegExp]",tt="[object String]",rt={};
return n?new d(r,n):r}}),Dt(["push","reverse","sort","unshift"],function(n){var t=yr[n];i.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),Dt(["concat","splice"],function(n){var t=yr[n];i.prototype[n]=function(){return new d(t.apply(this.__wrapped__,arguments),this.__chain__)}}),i}var k,x=[],C=[],O=0,A="__1335248838000__",E=75,N=40,R=" \t\x0B\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000",I=/\b__p\+='';/g,S=/\b(__p\+=)''\+/g,T=/(__e\(.*?\)|\b__t\))\+'';/g,D=/&(?:amp|lt|gt|quot|#39);/g,F=/[&<>"']/g,$=/<%-([\s\S]+?)%>/g,B=/<%([\s\S]+?)%>/g,q=/<%=([\s\S]+?)%>/g,W=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,z=/\w*$/,L=/^\s*function[ \n\r\t]+\w/,P=/^0[xX]/,K=/($^)/,M=/\bthis\b/,U=/['\n\r\t\u2028\u2029\\]/g,V="Array Boolean Date Function Math Number Object RegExp String _ clearTimeout document isFinite isNaN parseInt setTimeout TypeError window WinRTError".split(" "),X="[object Arguments]",G="[object Array]",H="[object Boolean]",J="[object Date]",Q="[object Function]",Y="[object Number]",Z="[object Object]",nt="[object RegExp]",tt="[object String]",rt={};
rt[Q]=false,rt[X]=rt[G]=rt[H]=rt[J]=rt[Y]=rt[Z]=rt[nt]=rt[tt]=true;var et={leading:false,maxWait:0,trailing:false},ut={configurable:false,enumerable:false,value:null,writable:false},ot={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},it={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},at={"boolean":false,"function":true,object:true,number:false,string:false,undefined:false},ft={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},lt=at[typeof window]&&window||this,ct=at[typeof exports]&&exports&&!exports.nodeType&&exports,pt=at[typeof global]&&global;
!pt||pt.global!==pt&&pt.window!==pt||(lt=pt);var st=(pt=at[typeof module]&&module&&!module.nodeType&&module)&&pt.exports===ct&&ct,ht=j();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(lt._=ht, define(function(){return ht})):ct&&pt?st?(pt.exports=ht)._=ht:ct._=ht:lt._=ht}).call(this);