From e0fba5cb5148a7a2c96b4d22717ffc4063e8477c Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Tue, 29 May 2012 14:40:03 +0300 Subject: [PATCH 1/2] Fix typo in build script Former-commit-id: 1f5327ea167ba88c00c6fcff5bbad3d64be6049b --- build/pre-compile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/pre-compile.js b/build/pre-compile.js index 36e6ed9da..7270bebc0 100644 --- a/build/pre-compile.js +++ b/build/pre-compile.js @@ -62,7 +62,7 @@ /** Used to minify variables and string values to a single character */ var minNames = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'.split(''); - /** Used protect the specified properties from getting minified */ + /** Used to protect the specified properties from getting minified */ var propWhitelist = [ '_', '_chain', From c1860d30d648217b036c0e963d3442682077c094 Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Tue, 29 May 2012 15:49:11 +0200 Subject: [PATCH 2/2] Optimize `escape()` by not needlessly escaping the `/` character Ref. #18. Former-commit-id: 82a29019daa15c83cb2159685ca5d575265cd902 --- lodash.js | 3 +-- lodash.min.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lodash.js b/lodash.js index c6ad50bca..405c71b8d 100644 --- a/lodash.js +++ b/lodash.js @@ -2746,8 +2746,7 @@ .replace(/&/g, '&') .replace(/a?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(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