Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrairieLearn/PrairieLearn
/ _once
Function
_once
public/javascripts/async.js:49–55 ·
view source on GitHub ↗
(fn)
Source
from the content-addressed store, hash-verified
47
}
48
49
function
_once(fn) {
50
return
function
() {
51
if
(fn === null)
return
;
52
fn.apply(this, arguments);
53
fn = null;
54
};
55
}
56
57
//// cross-browser compatiblity functions ////
58
Callers
3
async.js
File · 0.85
_eachOfLimit
Function · 0.85
_asyncMap
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected