aboutsummaryrefslogtreecommitdiffstats
path: root/platform/firefox
diff options
context:
space:
mode:
authorgorhill <rhill@raymondhill.net>2015-06-28 17:42:08 -0400
committergorhill <rhill@raymondhill.net>2015-06-28 17:42:08 -0400
commit39b0d719c065a042d7414690296477feaa524630 (patch)
tree545af8311f4ca13aa609869fa2ed96b1cd159cd5 /platform/firefox
parent58b655220712fc2b22e61be03b80d81fa2bb7e30 (diff)
downloaduBlock-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.js8
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 = {