| OLD | NEW |
| 1 | |
| 2 (function(scope) { | 1 (function(scope) { |
| 3 var MoreRouting = scope.MoreRouting = scope.MoreRouting || {}; | 2 var MoreRouting = scope.MoreRouting = scope.MoreRouting || {}; |
| 4 MoreRouting.Emitter = Object.create(null); // Minimal set of properties. | 3 MoreRouting.Emitter = Object.create(null); // Minimal set of properties. |
| 5 | 4 |
| 6 /** | 5 /** |
| 7 * A dumb prototype that provides very simple event subscription. | 6 * A dumb prototype that provides very simple event subscription. |
| 8 * | 7 * |
| 9 * You are responsible for initializing `__listeners` as an array on objects | 8 * You are responsible for initializing `__listeners` as an array on objects |
| 10 * that make use of this. | 9 * that make use of this. |
| 11 */ | 10 */ |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 } | 57 } |
| 59 | 58 |
| 60 this.__listeners.forEach(function(listener) { | 59 this.__listeners.forEach(function(listener) { |
| 61 listener.apply(null, args); | 60 listener.apply(null, args); |
| 62 }.bind(this)); | 61 }.bind(this)); |
| 63 }, | 62 }, |
| 64 }, | 63 }, |
| 65 | 64 |
| 66 }); | 65 }); |
| 67 | 66 |
| 68 })(window); | 67 })(window); |
| OLD | NEW |