MCPcopy Create free account
hub / github.com/sql-js/sql.js / eventMixin

Function eventMixin

GUI/codemirror/lib/codemirror.js:6945–6948  ·  view source on GitHub ↗
(ctor)

Source from the content-addressed store, hash-verified

6943 // Add on and off methods to a constructor's prototype, to make
6944 // registering events on such objects more convenient.
6945 function eventMixin(ctor) {
6946 ctor.prototype.on = function(type, f) {on(this, type, f);};
6947 ctor.prototype.off = function(type, f) {off(this, type, f);};
6948 }
6949
6950 // MISC UTILITIES
6951

Callers 1

codemirror.jsFile · 0.85

Calls 1

onFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…