chain.js 234 B

12345678910111213
  1. define(['./underscore'], function (underscore) {
  2. // Start chaining a wrapped Underscore object.
  3. function chain(obj) {
  4. var instance = underscore(obj);
  5. instance._chain = true;
  6. return instance;
  7. }
  8. return chain;
  9. });