Fixes #408: _.chain(object) as well as _(object).chain()

This commit is contained in:
Jeremy Ashkenas
2011-12-30 15:07:22 -05:00
parent 66bb646be7
commit 62c814d9fe
2 changed files with 17 additions and 0 deletions

View File

@@ -923,6 +923,11 @@
};
};
// Add a "chain" function, which will delegate to the wrapper.
_.chain = function(obj) {
return _(obj).chain();
};
// The OOP Wrapper
// ---------------