MCPcopy Index your code
hub / github.com/DHTMLX/gantt / eventMixin

Function eventMixin

samples/common/codehighlight/codemirror.js:595–598  ·  view source on GitHub ↗
(ctor)

Source from the content-addressed store, hash-verified

593 // Add on and off methods to a constructor's prototype, to make
594 // registering events on such objects more convenient.
595 function eventMixin(ctor) {
596 ctor.prototype.on = function(type, f) {on(this, type, f);};
597 ctor.prototype.off = function(type, f) {off(this, type, f);};
598 }
599
600 // Due to the fact that we still support jurassic IE versions, some
601 // compatibility wrappers are needed.

Callers 2

codemirror.jsFile · 0.85
addEditorMethodsFunction · 0.85

Calls 2

offFunction · 0.85
onFunction · 0.70

Tested by

no test coverage detected