MCPcopy Index your code
hub / github.com/shipshapecode/tether / trigger

Method trigger

src/js/evented.js:39–55  ·  view source on GitHub ↗
(event, ...args)

Source from the content-addressed store, hash-verified

37 }
38
39 trigger(event, ...args) {
40 if (!isUndefined(this.bindings) && this.bindings[event]) {
41 this.bindings[event].forEach((binding, index) => {
42 const { ctx, handler, once } = binding;
43
44 const context = ctx || this;
45
46 handler.apply(context, args);
47
48 if (once) {
49 this.bindings[event].splice(index, 1);
50 }
51 });
52 }
53
54 return this;
55 }
56}

Callers 6

evented.spec.jsFile · 0.80
positionFunction · 0.80
moveMethod · 0.80
jquery.jsFile · 0.80
doneFunction · 0.80
drop.jsFile · 0.80

Calls 1

isUndefinedFunction · 0.90

Tested by

no test coverage detected