source: frontend/node_modules/underscore/amd/bind.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: 544 bytes
Line 
1define(['./restArguments', './isFunction', './_executeBound'], function (restArguments, isFunction, _executeBound) {
2
3 // Create a function bound to a given object (assigning `this`, and arguments,
4 // optionally).
5 var bind = restArguments(function(func, context, args) {
6 if (!isFunction(func)) throw new TypeError('Bind must be called on a function');
7 var bound = restArguments(function(callArgs) {
8 return _executeBound(func, bound, context, this, args.concat(callArgs));
9 });
10 return bound;
11 });
12
13 return bind;
14
15});
Note: See TracBrowser for help on using the repository browser.