MCPcopy
hub / github.com/plotly/dash / on

Method on

dash/dash-renderer/src/actions/utils.js:177–181  ·  view source on GitHub ↗
(event, listener)

Source from the content-addressed store, hash-verified

175 this._ev = {};
176 }
177 on(event, listener) {
178 const events = (this._ev[event] = this._ev[event] || []);
179 events.push(listener);
180 return () => this.removeListener(event, listener);
181 }
182 removeListener(event, listener) {
183 const events = this._ev[event];
184 if (events) {

Callers 15

onceMethod · 0.95
bindEventsMethod · 0.80
load_ipython_extensionFunction · 0.80
startDebugFile_Method · 0.80
async-graph.jsFile · 0.80
xFunction · 0.80
gFunction · 0.80
TFunction · 0.80
MFunction · 0.80
EFunction · 0.80
plotly.min.jsFile · 0.80
AFunction · 0.80

Calls 2

removeListenerMethod · 0.95
pushMethod · 0.80

Tested by 1

getMetadataFunction · 0.64