* Mixin the emitter properties. * * @param {Object} obj * @return {Object} * @api private
(obj)
| 17 | */ |
| 18 | |
| 19 | function mixin(obj) { |
| 20 | for (var key in Emitter.prototype) { |
| 21 | obj[key] = Emitter.prototype[key]; |
| 22 | } |
| 23 | return obj; |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * Listen on the given `event` with `fn`. |