diff --git a/README.md b/README.md
index 0b22084de..2ff1ac76e 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# Lo-Dash v0.2.1
+# Lo-Dash v0.2.2
A drop-in replacement for Underscore.js, from the devs behind [jsPerf.com](http://jsperf.com), that delivers [performance improvements](http://jsperf.com/lodash-underscore#filterby=family), [bug fixes](https://github.com/bestiejs/lodash#closed-underscorejs-issues), and [additional features](https://github.com/bestiejs/lodash#features).
@@ -36,18 +36,26 @@ Lo-Dash has been tested in at least Chrome 5-19, Firefox 1.5-12, IE 6-9, Opera 9
Custom builds make it easy to create lightweight versions of Lo-Dash containing only the methods you need.
We handle all the method dependency and alias mapping for you.
+Mobile builds, with IE bug fixes and method compilation removed, may be created by using the `mobile` argument.
+
+~~~ bash
+node build mobile
+~~~
+
Custom builds may be created in two ways:
1. Use the`include` argument to pass the names of the methods to include in the build.
~~~ bash
node build include=each,filter,map,noConflict
node build include="each, filter, map, noConflict"
+node build mobile include=each,filter,map,noConflict
~~~
2. Use the `exclude` argument to pass the names of the methods to exclude from the build.
~~~ bash
node build exclude=isNaN,isUndefined,union,zip
node build exclude="isNaN, isUndefined, union, zip"
+node build mobile exclude=isNaN,isUndefined,union,zip
~~~
Custom builds are saved to `lodash.custom.js` and `lodash.custom.min.js`.
@@ -185,13 +193,21 @@ git submodule update --init
## Changelog
+### v0.2.2
+
+ * Added mobile build option
+ * Ensured `_.find` returns `undefined` for unmatched values
+ * Ensured `_.templateSettings.variable` Underscore.js compatibility
+ * Optimized `_.escape`
+ * Reduced dependencies in `_.find`
+
### v0.2.1
-* Adjusted the Lo-Dash export order for r.js
-* Ensured `_.groupBy` values are added to own, not inherited, properties
-* Made `_.bind` follow ES5 spec to support a popular Backbone.js pattern
-* Removed the alias `intersect`
-* Simplified `_.bind`, `_.flatten`, `_.groupBy`, `_.max`, and `_.min`
+ * Adjusted the Lo-Dash export order for r.js
+ * Ensured `_.groupBy` values are added to own, not inherited, properties
+ * Made `_.bind` follow ES5 spec to support a popular Backbone.js pattern
+ * Removed the alias `intersect`
+ * Simplified `_.bind`, `_.flatten`, `_.groupBy`, `_.max`, and `_.min`
### v0.2.0
diff --git a/build.js b/build.js
index 9b5570f81..f570f7bdd 100755
--- a/build.js
+++ b/build.js
@@ -10,6 +10,9 @@
var lodash = require(path.join(__dirname, 'lodash')),
minify = require(path.join(__dirname, 'build', 'minify'));
+ /** Flag used to specify a mobile build */
+ var isMobile = process.argv.indexOf('mobile') > -1;
+
/** Shortcut used to convert array-like objects to arrays */
var slice = [].slice;
@@ -152,9 +155,6 @@
}
}, '');
- /** Flag used to specify a mobile build */
- var isMobile = process.argv.indexOf('mobile') > -1;
-
/*--------------------------------------------------------------------------*/
/**
diff --git a/doc/parse.php b/doc/parse.php
index 48e5a55dd..bcb7b8c06 100644
--- a/doc/parse.php
+++ b/doc/parse.php
@@ -21,7 +21,7 @@
// generate Markdown
$markdown = docdown(array(
'path' => '../' . $file,
- 'title' => 'Lo-Dash v0.2.1',
+ 'title' => 'Lo-Dash v0.2.2',
'url' => 'https://github.com/bestiejs/lodash/blob/master/lodash.js'
));
diff --git a/lodash.js b/lodash.js
index 2ca790a69..3a8e1b7dc 100644
--- a/lodash.js
+++ b/lodash.js
@@ -1,5 +1,5 @@
/*!
- * Lo-Dash v0.2.1
+ * Lo-Dash v0.2.2
* Copyright 2012 John-David Dalton
* Based on Underscore.js 1.3.3, copyright 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
*
@@ -3089,7 +3089,7 @@
* @memberOf _
* @type String
*/
- lodash.VERSION = '0.2.1';
+ lodash.VERSION = '0.2.2';
// assign static methods
lodash.after = after;
diff --git a/lodash.min.js b/lodash.min.js
index 4bdb768c8..849f47472 100644
--- a/lodash.min.js
+++ b/lodash.min.js
@@ -1,5 +1,5 @@
/*!
- Lo-Dash 0.2.1 lodash.com/license
+ Lo-Dash 0.2.2 lodash.com/license
Underscore.js 1.3.3 github.com/documentcloud/underscore/blob/master/LICENSE
*/
;(function(u,n){"use strict";function S(a){return"[object Arguments]"==i.call(a)}function b(a){return new p(a)}function p(a){if(a&&a._wrapped)return a;this._wrapped=a}function k(){for(var a,c,d,j=-1,b=arguments.length,e={e:"",f:"",k:"",q:"",c:{d:"",m:"++l/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:"obj"};var sa=Function("obj","var __p;with(obj){__p='var l,r';if(k){__p+='='+k};__p+=';'+f+';'+q+';';if(c){__p+='var m='+g+'.length;l=-1;';if(o){__p+='if(m===+m){'};__p+=''+c['d']+';while('+c['m']+'){'+c['j']+'}';if(o){__p+='}'}}if(o){if(c){__p+='else{'}if(!i){__p+='var s=typeof '+l+'==\\'function\\';'};__p+=''+o['d']+';for('+o['m']+'){';if(i){if(r){__p+='if('+h+'){'};__p+=''+o['j']+';';if(r){__p+='}'}}else{__p+='if(!(s&&l==\\'prototype\\')';if(r){__p+='&&'+h};__p+='){'+o['j']+'}'};__p+='}';if(i){__p+='var g='+l+'.constructor;';for(var k=0;k<7;k++){__p+='l=\\''+p[k]+'\\';if(';if(p[k]=='constructor'){__p+='!(g&&g.prototype==='+l+')&&'};__p+=''+h+'){'+o['j']+'}'}}if(c){__p+='}'}};__p+=''+e+';return r'}return __p"
),t={a:"f,d,x",k:"f",q:"if(!d){d=k}else if(x){d=c(d,x)}",j:"d(f[l],l,f)"},Z={k:"z",j:"if(!d(f[l],l,f))return!r"},$={a:"n",k:"n",q:"for(var t,u=1,m=arguments.length;ua?c():function(){if(1>--a)return c.apply(this,arguments)}},b.bind=v,b.bindAll=function(a){var c=arguments,d=1;1==c.length&&(d=0,c=P(a));for(var b=c.length;da?c():function(){if(1>--a)return c.apply(this,arguments)}},b.bind=v,b.bindAll=function(a){var c=arguments,d=1;1==c.length&&(d=0,c=P(a));for(var b=c.length;dx(f,a[c])&&b.push(a[c]);return b},b.escape=function(a){return(a+"").replace(/&/g,"&").replace(/x(e,c)&&aa(f,function(a){return-1