Index: ext/common.js |
=================================================================== |
--- a/ext/common.js |
+++ b/ext/common.js |
@@ -20,10 +20,9 @@ |
{ |
window.ext = {}; |
- var EventTarget = ext._EventTarget = function(cancelable) |
+ var EventTarget = ext._EventTarget = function() |
{ |
this._listeners = []; |
- this._cancelable = cancelable; |
}; |
EventTarget.prototype = { |
addListener: function(listener) |
@@ -39,17 +38,12 @@ |
}, |
_dispatch: function() |
{ |
- var result = null; |
+ var results = []; |
for (var i = 0; i < this._listeners.length; i++) |
- { |
- result = this._listeners[i].apply(null, arguments); |
+ results.push(this._listeners[i].apply(null, arguments)); |
- if (this._cancelable && result === false) |
- break; |
- } |
- |
- return result; |
+ return results; |
} |
}; |
})(); |