Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/violentmonkey/violentmonkey
/ onceFn
Function
onceFn
src/common/browser.js:219–222 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
217
export
function
listenOnce(cb) {
218
const
event = this;
219
const
onceFn = data => {
220
event[kRemoveListener](onceFn);
221
cb(data);
222
};
223
event[kAddListener](onceFn);
224
}
Callers
nothing calls this directly
Calls
1
cb
Function · 0.70
Tested by
no test coverage detected