* Mixin the emitter properties. * * @param {Object} obj * @return {Object} * @api private
(obj)
| 1406 | */ |
| 1407 | |
| 1408 | function mixin(obj) { |
| 1409 | for (var key in Emitter.prototype) { |
| 1410 | obj[key] = Emitter.prototype[key]; |
| 1411 | } |
| 1412 | return obj; |
| 1413 | } |
| 1414 | |
| 1415 | /** |
| 1416 | * Listen on the given `event` with `fn`. |