MCPcopy Create free account
hub / github.com/PrairieLearn/PrairieLearn / bind

Function bind

public/javascripts/require.js:130–134  ·  view source on GitHub ↗
(obj, fn)

Source from the content-addressed store, hash-verified

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

Callers 2

socket.io.jsFile · 0.85
newContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected