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