MCPcopy Index your code
hub / github.com/csev/py4e / eventMixin

Function eventMixin

tools/pythonauto/static/codemirrorepl/codemirror.js:6887–6890  ·  view source on GitHub ↗
(ctor)

Source from the content-addressed store, hash-verified

6885 // Add on and off methods to a constructor's prototype, to make
6886 // registering events on such objects more convenient.
6887 function eventMixin(ctor) {
6888 ctor.prototype.on = function(type, f) {on(this, type, f);};
6889 ctor.prototype.off = function(type, f) {off(this, type, f);};
6890 }
6891
6892 // MISC UTILITIES
6893

Callers 1

codemirror.jsFile · 0.70

Calls 2

onFunction · 0.85
offFunction · 0.50

Tested by

no test coverage detected