(ctor)
| 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 |
no test coverage detected
searching dependent graphs…