diff options
author | gorhill <rhill@raymondhill.net> | 2015-06-28 17:42:08 -0400 |
---|---|---|
committer | gorhill <rhill@raymondhill.net> | 2015-06-28 17:42:08 -0400 |
commit | 39b0d719c065a042d7414690296477feaa524630 (patch) | |
tree | 545af8311f4ca13aa609869fa2ed96b1cd159cd5 /platform/firefox | |
parent | 58b655220712fc2b22e61be03b80d81fa2bb7e30 (diff) | |
download | uBlock-39b0d719c065a042d7414690296477feaa524630.zip uBlock-39b0d719c065a042d7414690296477feaa524630.tar.gz uBlock-39b0d719c065a042d7414690296477feaa524630.tar.bz2 |
some more work re inspector
Diffstat (limited to 'platform/firefox')
-rw-r--r-- | platform/firefox/vapi-client.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/platform/firefox/vapi-client.js b/platform/firefox/vapi-client.js index 44bbec0..778a7c3 100644 --- a/platform/firefox/vapi-client.js +++ b/platform/firefox/vapi-client.js @@ -94,6 +94,10 @@ MessagingListeners.prototype.remove = function(callback) { this.listeners.splice(this.listeners.indexOf(callback), 1); }; +MessagingListeners.prototype.removeAll = function() { + this.listeners = []; +}; + MessagingListeners.prototype.process = function(msg) { var listeners = this.listeners; var n = listeners.length; @@ -199,6 +203,10 @@ MessagingChannel.prototype.removeListener = function(callback) { this.listeners.remove(callback); }; +MessagingChannel.prototype.removeAllListeners = function() { + this.listeners.removeAll(); +}; + /******************************************************************************/ vAPI.messaging = { |