source: frontend/node_modules/call-bind/index.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: 641 bytes
Line 
1'use strict';
2
3var setFunctionLength = require('set-function-length');
4
5var $defineProperty = require('es-define-property');
6
7var callBindBasic = require('call-bind-apply-helpers');
8var applyBind = require('call-bind-apply-helpers/applyBind');
9
10module.exports = function callBind(originalFunction) {
11 var func = callBindBasic(arguments);
12 var adjustedLength = 1 + originalFunction.length - (arguments.length - 1);
13 return setFunctionLength(
14 func,
15 adjustedLength > 0 ? adjustedLength : 0,
16 true
17 );
18};
19
20if ($defineProperty) {
21 $defineProperty(module.exports, 'apply', { value: applyBind });
22} else {
23 module.exports.apply = applyBind;
24}
Note: See TracBrowser for help on using the repository browser.