MCPcopy
hub / github.com/williamngan/pts / add

Function add

docs/js/vue.js:2424–2430  ·  view source on GitHub ↗
(event, fn, once)

Source from the content-addressed store, hash-verified

2422var target;
2423
2424function add (event, fn, once) {
2425 if (once) {
2426 target.$once(event, fn);
2427 } else {
2428 target.$on(event, fn);
2429 }
2430}
2431
2432function remove$1 (event, fn) {
2433 target.$off(event, fn);

Callers 1

updateListenersFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected