source: frontend/node_modules/underscore/amd/mixin.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 577 bytes
Line 
1define(['./underscore', './each', './functions', './_setup', './_chainResult'], function (underscore, each, functions, _setup, _chainResult) {
2
3 // Add your own custom functions to the Underscore object.
4 function mixin(obj) {
5 each(functions(obj), function(name) {
6 var func = underscore[name] = obj[name];
7 underscore.prototype[name] = function() {
8 var args = [this._wrapped];
9 _setup.push.apply(args, arguments);
10 return _chainResult(this, func.apply(underscore, args));
11 };
12 });
13 return underscore;
14 }
15
16 return mixin;
17
18});
Note: See TracBrowser for help on using the repository browser.