(ctor)
| 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. |
no test coverage detected