MCPcopy
hub / github.com/requirejs/requirejs / bind

Function bind

require.js:132–136  ·  view source on GitHub ↗
(obj, fn)

Source from the content-addressed store, hash-verified

130 //Similar to Function.prototype.bind, but the 'this' object is specified
131 //first, since it is easier to read/figure out what 'this' will be.
132 function bind(obj, fn) {
133 return function () {
134 return fn.apply(obj, arguments);
135 };
136 }
137
138 function scripts() {
139 return document.getElementsByTagName('script');

Callers 1

newContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…