diff --git a/README.md b/README.md index 11aefd27ed..de18f8c1d2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Lo-Dash v1.1.0 +# Lo-Dash v1.1.1 [![build status](https://secure.travis-ci.org/bestiejs/lodash.png)](http://travis-ci.org/bestiejs/lodash) A low-level utility library delivering consistency, [customization](https://github.com/bestiejs/lodash#custom-builds), [performance](http://lodash.com/benchmarks), and [extra features](https://github.com/bestiejs/lodash#features). @@ -6,24 +6,24 @@ A low-level utility library delivering consistency, [customization](https://gith ## Download * Lo-Dash builds (for modern environments):
-[Development](https://raw.github.com/bestiejs/lodash/v1.1.0/dist/lodash.js) and -[Production](https://raw.github.com/bestiejs/lodash/v1.1.0/dist/lodash.min.js) +[Development](https://raw.github.com/bestiejs/lodash/v1.1.1/dist/lodash.js) and +[Production](https://raw.github.com/bestiejs/lodash/v1.1.1/dist/lodash.min.js) * Lo-Dash compatibility builds (for legacy and modern environments):
-[Development](https://raw.github.com/bestiejs/lodash/v1.1.0/dist/lodash.compat.js) and -[Production](https://raw.github.com/bestiejs/lodash/v1.1.0/dist/lodash.compat.min.js) +[Development](https://raw.github.com/bestiejs/lodash/v1.1.1/dist/lodash.compat.js) and +[Production](https://raw.github.com/bestiejs/lodash/v1.1.1/dist/lodash.compat.min.js) * Underscore compatibility builds:
-[Development](https://raw.github.com/bestiejs/lodash/v1.1.0/dist/lodash.underscore.js) and -[Production](https://raw.github.com/bestiejs/lodash/v1.1.0/dist/lodash.underscore.min.js) +[Development](https://raw.github.com/bestiejs/lodash/v1.1.1/dist/lodash.underscore.js) and +[Production](https://raw.github.com/bestiejs/lodash/v1.1.1/dist/lodash.underscore.min.js) -* CDN copies of ≤ v1.1.0’s builds are available on [cdnjs](http://cdnjs.com/) thanks to [CloudFlare](http://www.cloudflare.com/):
-[Lo-Dash dev](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.1.0/lodash.js), -[Lo-Dash prod](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.1.0/lodash.min.js),
-[Lo-Dash compat-dev](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.1.0/lodash.compat.js), -[Lo-Dash compat-prod](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.1.0/lodash.compat.min.js),
-[Underscore compat-dev](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.1.0/lodash.underscore.js), and -[Underscore compat-prod](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.1.0/lodash.underscore.min.js) +* CDN copies of ≤ v1.1.1’s builds are available on [cdnjs](http://cdnjs.com/) thanks to [CloudFlare](http://www.cloudflare.com/):
+[Lo-Dash dev](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.1.1/lodash.js), +[Lo-Dash prod](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.1.1/lodash.min.js),
+[Lo-Dash compat-dev](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.1.1/lodash.compat.js), +[Lo-Dash compat-prod](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.1.1/lodash.compat.min.js),
+[Underscore compat-dev](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.1.1/lodash.underscore.js), and +[Underscore compat-prod](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.1.1/lodash.underscore.min.js) * For optimal file size, [create a custom build](https://github.com/bestiejs/lodash#custom-builds) with only the features you need @@ -252,6 +252,11 @@ require({ ## Release Notes +### v1.1.1 + + * Ensured the `underscore` build version of `_.forEach` accepts a `thisArg` argument + * Updated vendor/tar to work with Node v0.10.x + ### v1.1.0 * Added `rhino -require` support diff --git a/dist/lodash.backbone.js b/dist/lodash.backbone.js index 3b066896a9..63cd5f9e38 100644 --- a/dist/lodash.backbone.js +++ b/dist/lodash.backbone.js @@ -1,6 +1,6 @@ /** * @license - * Lo-Dash 1.1.0 (Custom Build) + * Lo-Dash 1.1.1 (Custom Build) * Build: `lodash backbone exports="amd,commonjs,global,node" -o ./dist/lodash.backbone.js` * Copyright 2012-2013 The Dojo Foundation * Based on Underscore.js 1.4.4 @@ -3047,7 +3047,7 @@ * @memberOf _ * @type String */ - lodash.VERSION = '1.1.0'; + lodash.VERSION = '1.1.1'; // add functions to `lodash.prototype` mixin(lodash); diff --git a/dist/lodash.backbone.min.js b/dist/lodash.backbone.min.js index 4dc58bece2..73d8ea806f 100644 --- a/dist/lodash.backbone.min.js +++ b/dist/lodash.backbone.min.js @@ -1,6 +1,6 @@ /** * @license - * Lo-Dash 1.1.0 (Custom Build) lodash.com/license + * Lo-Dash 1.1.1 (Custom Build) lodash.com/license * Build: `lodash backbone exports="amd,commonjs,global,node" -o ./dist/lodash.backbone.js` * Underscore.js 1.4.4 underscorejs.org/LICENSE */ @@ -22,5 +22,5 @@ l(pr);var vr=function(n,r){var t;if(!n||!L[typeof n])return n;for(t in n)if(r(n[ })},r.rest=B,r.shuffle=function(n){var r=-1,t=n?n.length:0,e=Array(typeof t=="number"?t:0);return _(n,function(n){var t=X(ir()*(++r+1));e[r]=e[t],e[t]=n}),e},r.sortBy=function(n,r,e){var u=-1,o=n?n.length:0,f=Array(typeof o=="number"?o:0);for(r=M(r,e),_(n,function(n,t,e){f[++u]={a:r(n,t,e),b:u,c:n}}),o=f.length,f.sort(t);o--;)f[o]=f[o].c;return f},r.toArray=function(n){return lr(n)?nr.call(n):n&&typeof n.length=="number"?j(n):g(n)},r.values=g,r.without=function(n){for(var r=-1,t=n.length,e=[];++rE(arguments,u,1)&&e.push(u)}return e},r.collect=j,r.drop=B,r.each=_,r.extend=a,r.methods=c,r.select=b,r.tail=B,r.clone=function(n){return v(n)?lr(n)?nr.call(n):a({},n):n},r.contains=y,r.escape=function(n){return null==n?"":(n+"").replace(z,u)},r.every=m,r.find=d,r.has=function(n,r){return n?Y.call(n,r):!1},r.identity=I,r.indexOf=E,r.isArguments=i,r.isArray=lr,r.isEmpty=function(n){if(!n)return!0;if(lr(n)||h(n))return!n.length;for(var r in n)if(Y.call(n,r))return!1;return!0},r.isEqual=s,r.isFunction=p,r.isObject=v,r.isRegExp=function(n){return n instanceof RegExp||rr.call(n)==J },r.isString=h,r.lastIndexOf=function(n,r,t){var e=n?n.length:0;for(typeof t=="number"&&(e=(0>t?or(0,e+t):fr(t,e-1))+1);e--;)if(n[e]===r)return e;return-1},r.mixin=S,r.reduce=w,r.reduceRight=x,r.result=function(n,r){var t=n?n[r]:null;return p(t)?n[r]():t},r.size=function(n){var r=n?n.length:0;return typeof r=="number"?r:sr(n).length},r.some=A,r.sortedIndex=R,r.uniqueId=function(n){var r=++q+"";return n?n+r:r},r.all=m,r.any=A,r.detect=d,r.foldl=w,r.foldr=x,r.include=y,r.inject=w,r.first=O,r.last=function(n,r,t){if(n){var e=0,u=n.length; -if(typeof r!="number"&&null!=r){var o=u;for(r=M(r,t);o--&&r(n[o],o,n);)e++}else if(e=r,null==e||t)return n[u-1];return nr.call(n,or(0,u-e))}},r.take=O,r.head=O,r.chain=function(n){return n=new o(n),n.__chain__=!0,n},r.VERSION="1.1.0",S(r),r.prototype.chain=function(){return this.__chain__=!0,this},r.prototype.value=function(){return this.__wrapped__},_("pop push reverse shift sort splice unshift".split(" "),function(n){var t=Q[n];r.prototype[n]=function(){var n=this.__wrapped__;return t.apply(n,arguments),!cr.spliceObjects&&0===n.length&&delete n[0],this +if(typeof r!="number"&&null!=r){var o=u;for(r=M(r,t);o--&&r(n[o],o,n);)e++}else if(e=r,null==e||t)return n[u-1];return nr.call(n,or(0,u-e))}},r.take=O,r.head=O,r.chain=function(n){return n=new o(n),n.__chain__=!0,n},r.VERSION="1.1.1",S(r),r.prototype.chain=function(){return this.__chain__=!0,this},r.prototype.value=function(){return this.__wrapped__},_("pop push reverse shift sort splice unshift".split(" "),function(n){var t=Q[n];r.prototype[n]=function(){var n=this.__wrapped__;return t.apply(n,arguments),!cr.spliceObjects&&0===n.length&&delete n[0],this }}),_(["concat","join","slice"],function(n){var t=Q[n];r.prototype[n]=function(){var n=t.apply(this.__wrapped__,arguments);return this.__chain__&&(n=new o(n),n.__chain__=!0),n}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=r,define(function(){return r})):F&&!F.nodeType?N?(N.exports=r)._=r:F._=r:n._=r})(this); \ No newline at end of file diff --git a/dist/lodash.compat.js b/dist/lodash.compat.js index eb0c9d966a..c53a906ca4 100644 --- a/dist/lodash.compat.js +++ b/dist/lodash.compat.js @@ -1,6 +1,6 @@ /** * @license - * Lo-Dash 1.1.0 (Custom Build) + * Lo-Dash 1.1.1 (Custom Build) * Build: `lodash -o ./dist/lodash.compat.js` * Copyright 2012-2013 The Dojo Foundation * Based on Underscore.js 1.4.4 @@ -5347,7 +5347,7 @@ * @memberOf _ * @type String */ - lodash.VERSION = '1.1.0'; + lodash.VERSION = '1.1.1'; // add "Chaining" functions to the wrapper lodash.prototype.toString = wrapperToString; diff --git a/dist/lodash.compat.min.js b/dist/lodash.compat.min.js index b68b389964..a614cedb16 100644 --- a/dist/lodash.compat.min.js +++ b/dist/lodash.compat.min.js @@ -1,6 +1,6 @@ /** * @license - * Lo-Dash 1.1.0 (Custom Build) lodash.com/license + * Lo-Dash 1.1.1 (Custom Build) lodash.com/license * Build: `lodash -o ./dist/lodash.compat.js` * Underscore.js 1.4.4 underscorejs.org/LICENSE */ @@ -40,7 +40,7 @@ var e=Qt.call(n),r=n.length;return e==w||e==A||(ie.argsClass?e==C:H(n))||e==E&&t for(typeof e=="number"&&(r=(0>e?te(0,r+e):ee(e,r-1))+1);r--;)if(n[r]===t)return r;return-1},a.mixin=kt,a.noConflict=function(){return r._=Tt,this},a.parseInt=Ht,a.random=function(n,t){return null==n&&null==t&&(t=1),n=+n||0,null==t&&(t=n,n=0),n+Mt(ue()*((+t||0)-n+1))},a.reduce=pt,a.reduceRight=st,a.result=function(n,t){var r=n?n[t]:e;return Y(r)?n[t]():r},a.runInContext=t,a.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:le(n).length},a.some=vt,a.sortedIndex=dt,a.template=function(n,t,r){var u=a.templateSettings; n||(n=""),r=he({},r,u);var o,i=he({},r.imports,u.imports),u=le(i),i=rt(i),p=0,v=r.interpolate||y,h="__p+='",v=$t((r.escape||y).source+"|"+v.source+"|"+(v===g?s:y).source+"|"+(r.evaluate||y).source+"|$","g");n.replace(v,function(t,e,r,u,a,i){return r||(r=u),h+=n.slice(p,i).replace(d,D),e&&(h+="'+__e("+e+")+'"),a&&(o=!0,h+="';"+a+";__p+='"),r&&(h+="'+((__t=("+r+"))==null?'':__t)+'"),p=i+t.length,t}),h+="';\n",v=r=r.variable,v||(r="obj",h="with("+r+"){"+h+"}"),h=(o?h.replace(f,""):h).replace(c,"$1").replace(l,"$1;"),h="function("+r+"){"+(v?"":r+"||("+r+"={});")+"var __t,__p='',__e=_.escape"+(o?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+h+"return __p}"; try{var m=At(u,"return "+h).apply(e,i)}catch(b){throw b.source=h,b}return t?m(t):(m.source=h,m)},a.unescape=function(n){return null==n?"":qt(n).replace(p,G)},a.uniqueId=function(n){var t=++o;return qt(null==n?"":n)+t},a.all=at,a.any=vt,a.detect=it,a.foldl=pt,a.foldr=st,a.include=ut,a.inject=pt,me(a,function(n,t){a.prototype[t]||(a.prototype[t]=function(){var t=[this.__wrapped__];return Gt.apply(t,arguments),n.apply(a,t)})}),a.first=gt,a.last=function(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&null!=t){var o=u; -for(t=a.createCallback(t,e);o--&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n[u-1];return V(n,te(0,u-r))}},a.take=gt,a.head=gt,me(a,function(n,t){a.prototype[t]||(a.prototype[t]=function(t,e){var r=n(this.__wrapped__,t,e);return null==t||e&&typeof t!="function"?r:new K(r)})}),a.VERSION="1.1.0",a.prototype.toString=function(){return qt(this.__wrapped__)},a.prototype.value=xt,a.prototype.valueOf=xt,pe(["join","pop","shift"],function(n){var t=Ft[n];a.prototype[n]=function(){return t.apply(this.__wrapped__,arguments) +for(t=a.createCallback(t,e);o--&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n[u-1];return V(n,te(0,u-r))}},a.take=gt,a.head=gt,me(a,function(n,t){a.prototype[t]||(a.prototype[t]=function(t,e){var r=n(this.__wrapped__,t,e);return null==t||e&&typeof t!="function"?r:new K(r)})}),a.VERSION="1.1.1",a.prototype.toString=function(){return qt(this.__wrapped__)},a.prototype.value=xt,a.prototype.valueOf=xt,pe(["join","pop","shift"],function(n){var t=Ft[n];a.prototype[n]=function(){return t.apply(this.__wrapped__,arguments) }}),pe(["push","reverse","sort","unshift"],function(n){var t=Ft[n];a.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),pe(["concat","slice","splice"],function(n){var t=Ft[n];a.prototype[n]=function(){return new K(t.apply(this.__wrapped__,arguments))}}),ie.spliceObjects||pe(["pop","shift","splice"],function(n){var t=Ft[n],e="splice"==n;a.prototype[n]=function(){var n=this.__wrapped__,r=t.apply(n,arguments);return 0===n.length&&delete n[0],e?new K(r):r}}),a}var e,r=typeof exports=="object"&&exports,u=typeof module=="object"&&module&&module.exports==r&&module,a=typeof global=="object"&&global; a.global===a&&(n=a);var o=0,i={},f=/\b__p\+='';/g,c=/\b(__p\+=)''\+/g,l=/(__e\(.*?\)|\b__t\))\+'';/g,p=/&(?:amp|lt|gt|quot|#39);/g,s=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,v=/\w*$/,g=/<%=([\s\S]+?)%>/g,h=/^0+(?=.$)/,y=/($^)/,m=/[&<>"']/g,d=/['\n\r\t\u2028\u2029\\]/g,b="Array Boolean Date Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),C="[object Arguments]",w="[object Array]",j="[object Boolean]",k="[object Date]",x="[object Function]",O="[object Number]",E="[object Object]",S="[object RegExp]",A="[object String]",I={}; I[x]=!1,I[C]=I[w]=I[j]=I[k]=I[O]=I[E]=I[S]=I[A]=!0;var P={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},N={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},$=t();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=$,define(function(){return $})):r&&!r.nodeType?u?(u.exports=$)._=$:r._=$:n._=$})(this); \ No newline at end of file diff --git a/dist/lodash.js b/dist/lodash.js index dc2488089e..aaf96ece01 100644 --- a/dist/lodash.js +++ b/dist/lodash.js @@ -1,6 +1,6 @@ /** * @license - * Lo-Dash 1.1.0 (Custom Build) + * Lo-Dash 1.1.1 (Custom Build) * Build: `lodash modern -o ./dist/lodash.js` * Copyright 2012-2013 The Dojo Foundation * Based on Underscore.js 1.4.4 @@ -5145,7 +5145,7 @@ * @memberOf _ * @type String */ - lodash.VERSION = '1.1.0'; + lodash.VERSION = '1.1.1'; // add "Chaining" functions to the wrapper lodash.prototype.toString = wrapperToString; diff --git a/dist/lodash.legacy.js b/dist/lodash.legacy.js index f01d1d6bb5..c83f27c9b2 100644 --- a/dist/lodash.legacy.js +++ b/dist/lodash.legacy.js @@ -1,6 +1,6 @@ /** * @license - * Lo-Dash 1.1.0 (Custom Build) + * Lo-Dash 1.1.1 (Custom Build) * Build: `lodash legacy -o ./dist/lodash.legacy.js` * Copyright 2012-2013 The Dojo Foundation * Based on Underscore.js 1.4.4 @@ -5273,7 +5273,7 @@ * @memberOf _ * @type String */ - lodash.VERSION = '1.1.0'; + lodash.VERSION = '1.1.1'; // add "Chaining" functions to the wrapper lodash.prototype.toString = wrapperToString; diff --git a/dist/lodash.legacy.min.js b/dist/lodash.legacy.min.js index 11a9101bd3..928d09ea7a 100644 --- a/dist/lodash.legacy.min.js +++ b/dist/lodash.legacy.min.js @@ -1,6 +1,6 @@ /** * @license - * Lo-Dash 1.1.0 (Custom Build) lodash.com/license + * Lo-Dash 1.1.1 (Custom Build) lodash.com/license * Build: `lodash legacy -o ./dist/lodash.legacy.js` * Underscore.js 1.4.4 underscorejs.org/LICENSE */ @@ -40,6 +40,6 @@ return o},u.tap=function(n,t){return t(n),n},u.throttle=function(n,t){function e return typeof t=="number"?t:Zt(n).length},u.some=pt,u.sortedIndex=yt,u.template=function(n,t,r){var a=u.templateSettings;n||(n=""),r=ue({},r,a);var o,i=ue({},r.imports,a.imports),a=Zt(i),i=tt(i),p=0,v=r.interpolate||y,h="__p+='",v=It((r.escape||y).source+"|"+v.source+"|"+(v===g?s:y).source+"|"+(r.evaluate||y).source+"|$","g");n.replace(v,function(t,e,r,u,a,i){return r||(r=u),h+=n.slice(p,i).replace(d,$),e&&(h+="'+__e("+e+")+'"),a&&(o=!0,h+="';"+a+";__p+='"),r&&(h+="'+((__t=("+r+"))==null?'':__t)+'"),p=i+t.length,t }),h+="';\n",v=r=r.variable,v||(r="obj",h="with("+r+"){"+h+"}"),h=(o?h.replace(f,""):h).replace(c,"$1").replace(l,"$1;"),h="function("+r+"){"+(v?"":r+"||("+r+"={});")+"var __t,__p='',__e=_.escape"+(o?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+h+"return __p}";try{var m=Ot(a,"return "+h).apply(e,i)}catch(b){throw b.source=h,b}return t?m(t):(m.source=h,m)},u.unescape=function(n){return null==n?"":Nt(n).replace(p,U)},u.uniqueId=function(n){var t=++o;return Nt(null==n?"":n)+t },u.all=rt,u.any=pt,u.detect=at,u.foldl=ct,u.foldr=lt,u.include=et,u.inject=ct,oe(u,function(n,t){u.prototype[t]||(u.prototype[t]=function(){var t=[this.__wrapped__];return Lt.apply(t,arguments),n.apply(u,t)})}),u.first=st,u.last=function(n,t,e){if(n){var r=0,a=n.length;if(typeof t!="number"&&null!=t){var o=a;for(t=u.createCallback(t,e);o--&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n[a-1];return M(n,Gt(0,a-r))}},u.take=st,u.head=st,oe(u,function(n,t){u.prototype[t]||(u.prototype[t]=function(t,e){var r=n(this.__wrapped__,t,e); -return null==t||e&&typeof t!="function"?r:new L(r)})}),u.VERSION="1.1.0",u.prototype.toString=function(){return Nt(this.__wrapped__)},u.prototype.value=wt,u.prototype.valueOf=wt,ne(["join","pop","shift"],function(n){var t=qt[n];u.prototype[n]=function(){return t.apply(this.__wrapped__,arguments)}}),ne(["push","reverse","sort","unshift"],function(n){var t=qt[n];u.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),ne(["concat","slice","splice"],function(n){var t=qt[n];u.prototype[n]=function(){return new L(t.apply(this.__wrapped__,arguments)) +return null==t||e&&typeof t!="function"?r:new L(r)})}),u.VERSION="1.1.1",u.prototype.toString=function(){return Nt(this.__wrapped__)},u.prototype.value=wt,u.prototype.valueOf=wt,ne(["join","pop","shift"],function(n){var t=qt[n];u.prototype[n]=function(){return t.apply(this.__wrapped__,arguments)}}),ne(["push","reverse","sort","unshift"],function(n){var t=qt[n];u.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),ne(["concat","slice","splice"],function(n){var t=qt[n];u.prototype[n]=function(){return new L(t.apply(this.__wrapped__,arguments)) }}),Xt.spliceObjects||ne(["pop","shift","splice"],function(n){var t=qt[n],e="splice"==n;u.prototype[n]=function(){var n=this.__wrapped__,r=t.apply(n,arguments);return 0===n.length&&delete n[0],e?new L(r):r}}),u}var e,r=typeof exports=="object"&&exports,u=typeof module=="object"&&module&&module.exports==r&&module,a=typeof global=="object"&&global;a.global===a&&(n=a);var o=0,i={},f=/\b__p\+='';/g,c=/\b(__p\+=)''\+/g,l=/(__e\(.*?\)|\b__t\))\+'';/g,p=/&(?:amp|lt|gt|quot|#39);/g,s=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,v=/\w*$/,g=/<%=([\s\S]+?)%>/g,h=/^0+(?=.$)/,y=/($^)/,m=/[&<>"']/g,d=/['\n\r\t\u2028\u2029\\]/g,b="Array Boolean Date Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),C="[object Arguments]",w="[object Array]",j="[object Boolean]",k="[object Date]",x="[object Function]",O="[object Number]",E="[object Object]",S="[object RegExp]",A="[object String]",I={}; I[x]=!1,I[C]=I[w]=I[j]=I[k]=I[O]=I[E]=I[S]=I[A]=!0;var N={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},P={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},q=t();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=q,define(function(){return q})):r&&!r.nodeType?u?(u.exports=q)._=q:r._=q:n._=q})(this); \ No newline at end of file diff --git a/dist/lodash.min.js b/dist/lodash.min.js index c4ea834384..b70195ed64 100644 --- a/dist/lodash.min.js +++ b/dist/lodash.min.js @@ -1,6 +1,6 @@ /** * @license - * Lo-Dash 1.1.0 (Custom Build) lodash.com/license + * Lo-Dash 1.1.1 (Custom Build) lodash.com/license * Build: `lodash modern -o ./dist/lodash.js` * Underscore.js 1.4.4 underscorejs.org/LICENSE */ @@ -37,6 +37,6 @@ for(t=a.createCallback(t,e),at(n,function(n,e,u){o[++r]={a:t(n,e,u),b:r,c:n}}),u },a.lastIndexOf=function(n,t,e){var r=n?n.length:0;for(typeof e=="number"&&(r=(0>e?Zt(0,r+e):ne(e,r-1))+1);r--;)if(n[r]===t)return r;return-1},a.mixin=wt,a.noConflict=function(){return r._=Rt,this},a.parseInt=Gt,a.random=function(n,t){return null==n&&null==t&&(t=1),n=+n||0,null==t&&(t=n,n=0),n+Kt(ee()*((+t||0)-n+1))},a.reduce=ct,a.reduceRight=lt,a.result=function(n,t){var r=n?n[t]:e;return Q(r)?n[t]():r},a.runInContext=t,a.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:oe(n).length },a.some=pt,a.sortedIndex=yt,a.template=function(n,t,r){var u=a.templateSettings;n||(n=""),r=le({},r,u);var o,i=le({},r.imports,u.imports),u=oe(i),i=nt(i),p=0,v=r.interpolate||y,h="__p+='",v=At((r.escape||y).source+"|"+v.source+"|"+(v===g?s:y).source+"|"+(r.evaluate||y).source+"|$","g");n.replace(v,function(t,e,r,u,a,i){return r||(r=u),h+=n.slice(p,i).replace(b,T),e&&(h+="'+__e("+e+")+'"),a&&(o=!0,h+="';"+a+";__p+='"),r&&(h+="'+((__t=("+r+"))==null?'':__t)+'"),p=i+t.length,t}),h+="';\n",v=r=r.variable,v||(r="obj",h="with("+r+"){"+h+"}"),h=(o?h.replace(f,""):h).replace(c,"$1").replace(l,"$1;"),h="function("+r+"){"+(v?"":r+"||("+r+"={});")+"var __t,__p='',__e=_.escape"+(o?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+h+"return __p}"; try{var m=Nt(u,"return "+h).apply(e,i)}catch(d){throw d.source=h,d}return t?m(t):(m.source=h,m)},a.unescape=function(n){return null==n?"":$t(n).replace(p,U)},a.uniqueId=function(n){var t=++o;return $t(null==n?"":n)+t},a.all=et,a.any=pt,a.detect=ut,a.foldl=ct,a.foldr=lt,a.include=tt,a.inject=ct,se(a,function(n,t){a.prototype[t]||(a.prototype[t]=function(){var t=[this.__wrapped__];return Vt.apply(t,arguments),n.apply(a,t)})}),a.first=st,a.last=function(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&null!=t){var o=u; -for(t=a.createCallback(t,e);o--&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n[u-1];return M(n,Zt(0,u-r))}},a.take=st,a.head=st,se(a,function(n,t){a.prototype[t]||(a.prototype[t]=function(t,e){var r=n(this.__wrapped__,t,e);return null==t||e&&typeof t!="function"?r:new z(r)})}),a.VERSION="1.1.0",a.prototype.toString=function(){return $t(this.__wrapped__)},a.prototype.value=jt,a.prototype.valueOf=jt,at(["join","pop","shift"],function(n){var t=Bt[n];a.prototype[n]=function(){return t.apply(this.__wrapped__,arguments) +for(t=a.createCallback(t,e);o--&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n[u-1];return M(n,Zt(0,u-r))}},a.take=st,a.head=st,se(a,function(n,t){a.prototype[t]||(a.prototype[t]=function(t,e){var r=n(this.__wrapped__,t,e);return null==t||e&&typeof t!="function"?r:new z(r)})}),a.VERSION="1.1.1",a.prototype.toString=function(){return $t(this.__wrapped__)},a.prototype.value=jt,a.prototype.valueOf=jt,at(["join","pop","shift"],function(n){var t=Bt[n];a.prototype[n]=function(){return t.apply(this.__wrapped__,arguments) }}),at(["push","reverse","sort","unshift"],function(n){var t=Bt[n];a.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),at(["concat","slice","splice"],function(n){var t=Bt[n];a.prototype[n]=function(){return new z(t.apply(this.__wrapped__,arguments))}}),a}var e,r=typeof exports=="object"&&exports,u=typeof module=="object"&&module&&module.exports==r&&module,a=typeof global=="object"&&global;a.global===a&&(n=a);var o=0,i={},f=/\b__p\+='';/g,c=/\b(__p\+=)''\+/g,l=/(__e\(.*?\)|\b__t\))\+'';/g,p=/&(?:amp|lt|gt|quot|#39);/g,s=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,v=/\w*$/,g=/<%=([\s\S]+?)%>/g,h=/^0+(?=.$)/,y=/($^)/,m=/[&<>"']/g,b=/['\n\r\t\u2028\u2029\\]/g,d="Array Boolean Date Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),_="[object Arguments]",k="[object Array]",w="[object Boolean]",j="[object Date]",C="[object Number]",x="[object Object]",O="[object RegExp]",N="[object String]",E={"[object Function]":!1}; E[_]=E[k]=E[w]=E[j]=E[C]=E[x]=E[O]=E[N]=!0;var I={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},S={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},A=t();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=A,define(function(){return A})):r&&!r.nodeType?u?(u.exports=A)._=A:r._=A:n._=A})(this); \ No newline at end of file diff --git a/dist/lodash.mobile.js b/dist/lodash.mobile.js index 4f003c8485..017b876b58 100644 --- a/dist/lodash.mobile.js +++ b/dist/lodash.mobile.js @@ -1,6 +1,6 @@ /** * @license - * Lo-Dash 1.1.0 (Custom Build) + * Lo-Dash 1.1.1 (Custom Build) * Build: `lodash mobile -o ./dist/lodash.mobile.js` * Copyright 2012-2013 The Dojo Foundation * Based on Underscore.js 1.4.4 @@ -5118,7 +5118,7 @@ * @memberOf _ * @type String */ - lodash.VERSION = '1.1.0'; + lodash.VERSION = '1.1.1'; // add "Chaining" functions to the wrapper lodash.prototype.toString = wrapperToString; diff --git a/dist/lodash.mobile.min.js b/dist/lodash.mobile.min.js index a8b46f7f8d..12446c1a60 100644 --- a/dist/lodash.mobile.min.js +++ b/dist/lodash.mobile.min.js @@ -1,6 +1,6 @@ /** * @license - * Lo-Dash 1.1.0 (Custom Build) lodash.com/license + * Lo-Dash 1.1.1 (Custom Build) lodash.com/license * Build: `lodash mobile -o ./dist/lodash.mobile.js` * Underscore.js 1.4.4 underscorejs.org/LICENSE */ @@ -38,6 +38,6 @@ for(t=K.createCallback(t,e),gt(n,function(n,e,u){a[++r]={a:t(n,e,u),b:r,c:n}}),u },K.lastIndexOf=function(n,t,e){var r=n?n.length:0;for(typeof e=="number"&&(r=(0>e?ae(0,r+e):oe(e,r-1))+1);r--;)if(n[r]===t)return r;return-1},K.mixin=Nt,K.noConflict=function(){return o._=Ut,this},K.parseInt=$t,K.random=function(n,t){return n==u&&t==u&&(t=1),n=+n||0,t==u&&(t=n,n=0),n+Lt(fe()*((+t||0)-n+1))},K.reduce=dt,K.reduceRight=mt,K.result=function(n,t){var r=n?n[t]:e;return ut(r)?n[t]():r},K.runInContext=t,K.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:ve(n).length},K.some=bt,K.sortedIndex=jt,K.template=function(n,t,u){var a=K.templateSettings; n||(n=""),u=q({},u,a);var o,i=q({},u.imports,a.imports),a=ve(i),i=ct(i),f=0,c=u.interpolate||b,l="__p+='",c=Dt((u.escape||b).source+"|"+c.source+"|"+(c===d?y:b).source+"|"+(u.evaluate||b).source+"|$","g");n.replace(c,function(t,e,u,a,i,c){return u||(u=a),l+=n.slice(f,c).replace(k,H),e&&(l+="'+__e("+e+")+'"),i&&(o=r,l+="';"+i+";__p+='"),u&&(l+="'+((__t=("+u+"))==null?'':__t)+'"),f=c+t.length,t}),l+="';\n",c=u=u.variable,c||(u="obj",l="with("+u+"){"+l+"}"),l=(o?l.replace(p,""):l).replace(s,"$1").replace(v,"$1;"),l="function("+u+"){"+(c?"":u+"||("+u+"={});")+"var __t,__p='',__e=_.escape"+(o?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+l+"return __p}"; try{var g=Ft(a,"return "+l).apply(e,i)}catch(h){throw h.source=l,h}return t?g(t):(g.source=l,g)},K.unescape=function(n){return n==u?"":zt(n).replace(g,Y)},K.uniqueId=function(n){var t=++c;return zt(n==u?"":n)+t},K.all=pt,K.any=bt,K.detect=vt,K.foldl=dt,K.foldr=mt,K.include=lt,K.inject=dt,f(K,function(n,t){K.prototype[t]||(K.prototype[t]=function(){var t=[this.__wrapped__];return Xt.apply(t,arguments),n.apply(K,t)})}),K.first=_t,K.last=function(n,t,e){if(n){var r=0,a=n.length;if(typeof t!="number"&&t!=u){var o=a; -for(t=K.createCallback(t,e);o--&&t(n[o],o,n);)r++}else if(r=t,r==u||e)return n[a-1];return X(n,ae(0,a-r))}},K.take=_t,K.head=_t,f(K,function(n,t){K.prototype[t]||(K.prototype[t]=function(t,e){var r=n(this.__wrapped__,t,e);return t==u||e&&typeof t!="function"?r:new L(r)})}),K.VERSION="1.1.0",K.prototype.toString=function(){return zt(this.__wrapped__)},K.prototype.value=St,K.prototype.valueOf=St,z(["join","pop","shift"],function(n){var t=Kt[n];K.prototype[n]=function(){return t.apply(this.__wrapped__,arguments) +for(t=K.createCallback(t,e);o--&&t(n[o],o,n);)r++}else if(r=t,r==u||e)return n[a-1];return X(n,ae(0,a-r))}},K.take=_t,K.head=_t,f(K,function(n,t){K.prototype[t]||(K.prototype[t]=function(t,e){var r=n(this.__wrapped__,t,e);return t==u||e&&typeof t!="function"?r:new L(r)})}),K.VERSION="1.1.1",K.prototype.toString=function(){return zt(this.__wrapped__)},K.prototype.value=St,K.prototype.valueOf=St,z(["join","pop","shift"],function(n){var t=Kt[n];K.prototype[n]=function(){return t.apply(this.__wrapped__,arguments) }}),z(["push","reverse","sort","unshift"],function(n){var t=Kt[n];K.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),z(["concat","slice","splice"],function(n){var t=Kt[n];K.prototype[n]=function(){return new L(t.apply(this.__wrapped__,arguments))}}),K}var e,r=!0,u=null,a=!1,o=typeof exports=="object"&&exports,i=typeof module=="object"&&module&&module.exports==o&&module,f=typeof global=="object"&&global;f.global===f&&(n=f);var c=0,l={},p=/\b__p\+='';/g,s=/\b(__p\+=)''\+/g,v=/(__e\(.*?\)|\b__t\))\+'';/g,g=/&(?:amp|lt|gt|quot|#39);/g,y=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,h=/\w*$/,d=/<%=([\s\S]+?)%>/g,m=/^0+(?=.$)/,b=/($^)/,_=/[&<>"']/g,k=/['\n\r\t\u2028\u2029\\]/g,C="Array Boolean Date Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),w="[object Arguments]",j="[object Array]",x="[object Boolean]",O="[object Date]",E="[object Function]",A="[object Number]",N="[object Object]",S="[object RegExp]",I="[object String]",$={}; $[E]=a,$[w]=$[j]=$[x]=$[O]=$[A]=$[N]=$[S]=$[I]=r;var B={"boolean":a,"function":r,object:r,number:a,string:a,undefined:a},F={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},R=t();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=R,define(function(){return R})):o&&!o.nodeType?i?(i.exports=R)._=R:o._=R:n._=R})(this); \ No newline at end of file diff --git a/dist/lodash.underscore.js b/dist/lodash.underscore.js index 85e140ba5a..ccf632d5ee 100644 --- a/dist/lodash.underscore.js +++ b/dist/lodash.underscore.js @@ -1,6 +1,6 @@ /** * @license - * Lo-Dash 1.1.0 (Custom Build) + * Lo-Dash 1.1.1 (Custom Build) * Build: `lodash underscore exports="amd,commonjs,global,node" -o ./dist/lodash.underscore.js` * Copyright 2012-2013 The Dojo Foundation * Based on Underscore.js 1.4.4 @@ -4280,7 +4280,7 @@ * @memberOf _ * @type String */ - lodash.VERSION = '1.1.0'; + lodash.VERSION = '1.1.1'; // add functions to `lodash.prototype` mixin(lodash); diff --git a/dist/lodash.underscore.min.js b/dist/lodash.underscore.min.js index b85702417c..56dab79c70 100644 --- a/dist/lodash.underscore.min.js +++ b/dist/lodash.underscore.min.js @@ -1,6 +1,6 @@ /** * @license - * Lo-Dash 1.1.0 (Custom Build) lodash.com/license + * Lo-Dash 1.1.1 (Custom Build) lodash.com/license * Build: `lodash underscore exports="amd,commonjs,global,node" -o ./dist/lodash.underscore.js` * Underscore.js 1.4.4 underscorejs.org/LICENSE */ @@ -30,5 +30,5 @@ o in n&&(u[o]=n[o])}return u},u.pluck=F,u.range=function(n,t,r){n=+n||0,r=+r||1, },u.isFunction=b,u.isNaN=function(n){return j(n)&&n!=+n},u.isNull=function(n){return n===J},u.isNumber=j,u.isObject=d,u.isRegExp=function(n){return n instanceof RegExp||Ot.call(n)==lt},u.isString=w,u.isUndefined=function(n){return typeof n=="undefined"},u.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?Ft(0,e+r):Rt(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},u.mixin=G,u.noConflict=function(){return n._=ht,this},u.random=function(n,t){return n==J&&t==J&&(t=1),n=+n||0,t==J&&(t=n,n=0),n+dt(qt()*((+t||0)-n+1)) },u.reduce=R,u.reduceRight=q,u.result=function(n,t){var r=n?n[t]:J;return b(r)?n[t]():r},u.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:$t(n).length},u.some=D,u.sortedIndex=C,u.template=function(n,t,r){n||(n=""),r=g({},r,u.templateSettings);var e=0,o="__p+='",i=r.variable;n.replace(RegExp((r.escape||tt).source+"|"+(r.interpolate||tt).source+"|"+(r.evaluate||tt).source+"|$","g"),function(t,r,u,i,f){return o+=n.slice(e,f).replace(et,a),r&&(o+="'+_['escape']("+r+")+'"),i&&(o+="';"+i+";__p+='"),u&&(o+="'+((__t=("+u+"))==null?'':__t)+'"),e=f+t.length,t }),o+="';\n",i||(i="obj",o="with("+i+"||{}){"+o+"}"),o="function("+i+"){var __t,__p='',__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}"+o+"return __p}";try{var f=Function("_","return "+o)(u)}catch(c){throw c.source=o,c}return t?f(t):(f.source=o,f)},u.unescape=function(n){return n==J?"":(n+"").replace(nt,p)},u.uniqueId=function(n){var t=++Y+"";return n?n+t:t},u.all=O,u.any=D,u.detect=S,u.foldl=R,u.foldr=q,u.include=x,u.inject=R,u.first=T,u.last=function(n,t,r){if(n){var e=0,u=n.length; -if(typeof t!="number"&&t!=J){var o=u;for(t=V(t,r);o--&&t(n[o],o,n);)e++}else if(e=t,e==J||r)return n[u-1];return xt.call(n,Ft(0,u-e))}},u.take=T,u.head=T,u.chain=function(n){return n=new c(n),n.__chain__=H,n},u.VERSION="1.1.0",G(u),u.prototype.chain=function(){return this.__chain__=H,this},u.prototype.value=function(){return this.__wrapped__},N("pop push reverse shift sort splice unshift".split(" "),function(n){var t=gt[n];u.prototype[n]=function(){var n=this.__wrapped__;return t.apply(n,arguments),!Mt.spliceObjects&&0===n.length&&delete n[0],this +if(typeof t!="number"&&t!=J){var o=u;for(t=V(t,r);o--&&t(n[o],o,n);)e++}else if(e=t,e==J||r)return n[u-1];return xt.call(n,Ft(0,u-e))}},u.take=T,u.head=T,u.chain=function(n){return n=new c(n),n.__chain__=H,n},u.VERSION="1.1.1",G(u),u.prototype.chain=function(){return this.__chain__=H,this},u.prototype.value=function(){return this.__wrapped__},N("pop push reverse shift sort splice unshift".split(" "),function(n){var t=gt[n];u.prototype[n]=function(){var n=this.__wrapped__;return t.apply(n,arguments),!Mt.spliceObjects&&0===n.length&&delete n[0],this }}),N(["concat","join","slice"],function(n){var t=gt[n];u.prototype[n]=function(){var n=t.apply(this.__wrapped__,arguments);return this.__chain__&&(n=new c(n),n.__chain__=H),n}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=u,define(function(){return u})):L&&!L.nodeType?Q?(Q.exports=u)._=u:L._=u:n._=u})(this); \ No newline at end of file diff --git a/doc/README.md b/doc/README.md index 653f02f0bd..b7fa5f93d1 100644 --- a/doc/README.md +++ b/doc/README.md @@ -1,4 +1,4 @@ -# Lo-Dash v1.1.0 +# Lo-Dash v1.1.1 diff --git a/doc/parse.php b/doc/parse.php index e80d37ebbc..2a5ed68dfd 100644 --- a/doc/parse.php +++ b/doc/parse.php @@ -21,7 +21,7 @@ // generate Markdown $markdown = docdown(array( 'path' => '../' . $file, - 'title' => 'Lo-Dash v1.1.0', + 'title' => 'Lo-Dash v1.1.1', 'toc' => 'categories', 'url' => 'https://github.com/bestiejs/lodash/blob/master/lodash.js' )); diff --git a/lodash.js b/lodash.js index 7ad79af562..3b4d6db5ce 100644 --- a/lodash.js +++ b/lodash.js @@ -1,6 +1,6 @@ /** * @license - * Lo-Dash 1.1.0 + * Lo-Dash 1.1.1 * Copyright 2012-2013 The Dojo Foundation * Based on Underscore.js 1.4.4 * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud Inc. @@ -5357,7 +5357,7 @@ * @memberOf _ * @type String */ - lodash.VERSION = '1.1.0'; + lodash.VERSION = '1.1.1'; // add "Chaining" functions to the wrapper lodash.prototype.toString = wrapperToString; diff --git a/package.json b/package.json index 65f73dd8e6..aadfda5fa6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lodash", - "version": "1.1.0", + "version": "1.1.1", "description": "A low-level utility library delivering consistency, customization, performance, and extra features.", "homepage": "http://lodash.com", "main": "./dist/lodash",