mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
Replace createWrapper references with new lodashWrapper references and refine Closure Compiler fix.
Former-commit-id: 552b98a4e9ccd42a00a980dd850e3b154cb7cd32
This commit is contained in:
8
build.js
8
build.js
@@ -319,7 +319,7 @@
|
||||
" * // => 'moe is 40'",
|
||||
' */',
|
||||
'function chain(value) {',
|
||||
' value = new lodash(value);',
|
||||
' value = new lodashWrapper(value);',
|
||||
' value.__chain__ = true;',
|
||||
' return value;',
|
||||
'}',
|
||||
@@ -395,7 +395,7 @@
|
||||
'',
|
||||
' var result = func.apply(lodash, args);',
|
||||
' if (this.__chain__) {',
|
||||
' result = createWrapper(result);',
|
||||
' result = new lodashWrapper(result);',
|
||||
' result.__chain__ = true;',
|
||||
' }',
|
||||
' return result;',
|
||||
@@ -431,7 +431,7 @@
|
||||
' result = func.apply(value, arguments);',
|
||||
'',
|
||||
' if (this.__chain__) {',
|
||||
' result = new lodash(result);',
|
||||
' result = new lodashWrapper(result);',
|
||||
' result.__chain__ = true;',
|
||||
' }',
|
||||
' return result;',
|
||||
@@ -2536,7 +2536,7 @@
|
||||
' var result = func.apply(lodash, args);',
|
||||
" return (value && typeof value == 'object' && value == result)",
|
||||
' ? this',
|
||||
' : createWrapper(result);',
|
||||
' : new lodashWrapper(result);',
|
||||
' };',
|
||||
'});'
|
||||
].join('\n' + indent);
|
||||
|
||||
Reference in New Issue
Block a user