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