MCPcopy Create free account
hub / github.com/Moosync/Moosync / once

Method once

src/js/youtube_player.js:137–143  ·  view source on GitHub ↗
(event, callback)

Source from the content-addressed store, hash-verified

135 }
136
137 once(event, callback) {
138 const cb = (...args) => {
139 callback(...args);
140 this.off(event, cb);
141 };
142 this.on(event, cb);
143 }
144
145 emit(event, data) {
146 const callbacks = this.listeners[event];

Callers 2

playMethod · 0.95
send_ui_requestMethod · 0.80

Calls 1

onMethod · 0.95

Tested by

no test coverage detected