Index: lib/filterNotifier.js |
=================================================================== |
--- a/lib/filterNotifier.js |
+++ b/lib/filterNotifier.js |
@@ -61,12 +61,13 @@ let FilterNotifier = exports.FilterNotif |
* "subscription.lastDownload", "subscription.downloadStatus", |
* "subscription.homepage", "subscription.updated", |
* "filter.added", "filter.removed", "filter.moved", |
* "filter.disabled", "filter.hitCount", "filter.lastHit") |
* @param {Subscription|Filter} item item that the change applies to |
*/ |
triggerListeners: function(action, item, param1, param2, param3) |
{ |
- for each (let listener in listeners) |
+ let list = listeners.slice(); |
+ for each (let listener in list) |
listener(action, item, param1, param2, param3); |
} |
}; |