Ensure _.chain works as expected.

Former-commit-id: ed176702dc08deeb35d94bb7b40623ab06142848
This commit is contained in:
John-David Dalton
2013-05-15 12:45:55 -07:00
parent f7c960fc0d
commit 43fea34f61
2 changed files with 35 additions and 28 deletions

View File

@@ -5404,13 +5404,13 @@
lodash.tail = rest;
lodash.unique = uniq;
// add chain compat
lodash.chain = lodash;
lodash.prototype.chain = function() { return this; };
// add functions to `lodash.prototype`
mixin(lodash);
// add Underscore `_.chain` compat
lodash.chain = lodash;
lodash.prototype.chain = function() { return this; };
/*--------------------------------------------------------------------------*/
// add functions that return unwrapped values when chaining