From 0fa0b0b1ea6bcf37a71c24632d565a165a191853 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 10 Mar 2013 00:55:50 -0800 Subject: [PATCH] Remove Closure Compiler escape from `eachIteratorOptions`. Former-commit-id: 532e73f570bed2bc5941d0a6d1cb13618da0441b --- build/pre-compile.js | 3 +++ dist/lodash.compat.min.js | 2 +- dist/lodash.min.js | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/build/pre-compile.js b/build/pre-compile.js index f45fb7d5e..f5a3aa0d6 100644 --- a/build/pre-compile.js +++ b/build/pre-compile.js @@ -245,6 +245,9 @@ return "['" + prop.replace(/['\n\r\t]/g, '\\$&') + "']"; }); + // remove brackets from `lodash.createCallback` in `eachIteratorOptions` + source = source.replace('lodash[\'createCallback\'](callback, thisArg)"', 'lodash.createCallback(callback, thisArg)"'); + // remove brackets from `lodash.createCallback` in `_.assign` source = source.replace("' var callback = lodash['createCallback']", "'var callback=lodash.createCallback"); diff --git a/dist/lodash.compat.min.js b/dist/lodash.compat.min.js index 384d87346..565fe016c 100644 --- a/dist/lodash.compat.min.js +++ b/dist/lodash.compat.min.js @@ -22,7 +22,7 @@ else le.unindexedChars&&rt(n)&&(u=n.split(""));return t=a.createCallback(t,r,4), }function Ct(n,t){for(var e=-1,r=n?n.length:0,u={};++e/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:y,variable:"",imports:{_:a}};var At={a:"q,w,g",g:"var a=arguments,b=0,c=typeof g=='number'?2:a.length;while(++b/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:y,variable:"",imports:{_:a}};var At={a:"q,w,g",g:"var a=arguments,b=0,c=typeof g=='number'?2:a.length;while(++b":">",'"':""","'":"'"},me=Y(he),de=D(At,{g:At.g.replace(";",";if(c>3&&typeof a[c-2]=='function'){var d=o.createCallback(a[--c-1],a[c--],2);}else if(c>2&&typeof a[c-1]=='function'){d=a[--c];}"),e:"u[i]=d?d(u[i],m[i]):m[i]"}),be=D(At); nt(/x/)&&(nt=function(n){return n instanceof It||Wt.call(n)==O});var _e=Vt?function(n){if(!n||typeof n!="object")return!1;var t=n.valueOf,e=typeof t=="function"&&(e=Vt(t))&&Vt(e);return e?n==e||Vt(n)==e&&!H(n):J(n)}:J;return fe&&u&&typeof Jt=="function"&&(kt=jt(Jt,r)),Jt=8==ue("08")?ue:function(n,t){return ue(rt(n)?n.replace(h,""):n,t||0)},a.after=function(n,t){return 1>n?t():function(){return 1>--n?t.apply(this,arguments):void 0}},a.assign=de,a.at=function(n){var t=-1,e=Mt.apply(Rt,V(arguments,1)),r=e.length,u=St(r); for(le.unindexedChars&&rt(n)&&(n=n.split(""));++t>>1,e(n[r])ht(f,p))&&((e||c)&&f.push(p),i.push(r))}return i}function dt(n,t){for(var e=-1,r=n?n.length:0,u={};++e/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:h,variable:"",imports:{_:a}};var Ot={a:"q,w,g",g:"var a=arguments,b=0,c=typeof g=='number'?2:a.length;while(++b/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:h,variable:"",imports:{_:a}};var Ot={a:"q,w,g",g:"var a=arguments,b=0,c=typeof g=='number'?2:a.length;while(++b":">",'"':""","'":"'"},pe=Q(le),se=T(Ot,{g:Ot.g.replace(";",";if(c>3&&typeof a[c-2]=='function'){var d=o.createCallback(a[--c-1],a[c--],2);}else if(c>2&&typeof a[c-1]=='function'){d=a[--c];}"),e:"u[i]=d?d(u[i],m[i]):m[i]"}),ve=T(Ot),ge=function(n){if(!n||typeof n!="object")return!1;var t=n.valueOf,e=typeof t=="function"&&(e=Mt(t))&&Mt(e); return e?n==e||Mt(n)==e&&!V(n):G(n)};return At&&u&&typeof Gt=="function"&&(kt=_t(Gt,r)),Gt=8==te("08")?te:function(n,t){return te(nt(n)?n.replace(y,""):n,t||0)},a.after=function(n,t){return 1>n?t():function(){return 1>--n?t.apply(this,arguments):void 0}},a.assign=se,a.at=function(n){for(var t=-1,e=Kt.apply(Ft,M(arguments,1)),r=e.length,u=xt(r);++t