MCPcopy Create free account
hub / github.com/keepfool/vue-tutorials / on

Function on

06.Router/basic/js/vue.js:1271–1273  ·  view source on GitHub ↗

* Add event listener shorthand. * * @param {Element} el * @param {String} event * @param {Function} cb * @param {Boolean} [useCapture]

(el, event, cb, useCapture)

Source from the content-addressed store, hash-verified

1269 */
1270
1271 function on(el, event, cb, useCapture) {
1272 el.addEventListener(event, cb, useCapture);
1273 }
1274
1275 /**
1276 * Remove event listener shorthand.

Callers 1

vue.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected