Replace createWrapper references with new lodashWrapper references and refine Closure Compiler fix.

Former-commit-id: 552b98a4e9ccd42a00a980dd850e3b154cb7cd32
This commit is contained in:
John-David Dalton
2013-03-05 02:05:44 -08:00
parent 792f768479
commit 3131cc3160
4 changed files with 29 additions and 31 deletions

View File

@@ -3750,7 +3750,7 @@
var result = func.apply(lodash, args);
if (this.__chain__) {
result = createWrapper(result);
result = new lodashWrapper(result);
result.__chain__ = true;
}
return result;
@@ -4070,7 +4070,7 @@
* // => 'moe is 40'
*/
function chain(value) {
value = new lodash(value);
value = new lodashWrapper(value);
value.__chain__ = true;
return value;
}
@@ -4321,7 +4321,7 @@
result = func.apply(value, arguments);
if (this.__chain__) {
result = new lodash(result);
result = new lodashWrapper(result);
result.__chain__ = true;
}
return result;