Index: lib/filterClasses.js |
=================================================================== |
--- a/lib/filterClasses.js |
+++ b/lib/filterClasses.js |
@@ -328,17 +328,17 @@ |
return this._disabled; |
}, |
set disabled(value) |
{ |
if (value != this._disabled) |
{ |
let oldValue = this._disabled; |
this._disabled = value; |
- FilterNotifier.triggerListeners("filter.disabled", this, value, oldValue); |
+ FilterNotifier.emit("filter.disabled", this, value, oldValue); |
} |
return this._disabled; |
}, |
/** |
* Number of hits on the filter since the last reset |
* @type {number} |
*/ |
@@ -347,17 +347,17 @@ |
return this._hitCount; |
}, |
set hitCount(value) |
{ |
if (value != this._hitCount) |
{ |
let oldValue = this._hitCount; |
this._hitCount = value; |
- FilterNotifier.triggerListeners("filter.hitCount", this, value, oldValue); |
+ FilterNotifier.emit("filter.hitCount", this, value, oldValue); |
} |
return this._hitCount; |
}, |
/** |
* Last time the filter had a hit (in milliseconds since the beginning of the |
* epoch) |
* @type {number} |
@@ -367,17 +367,17 @@ |
return this._lastHit; |
}, |
set lastHit(value) |
{ |
if (value != this._lastHit) |
{ |
let oldValue = this._lastHit; |
this._lastHit = value; |
- FilterNotifier.triggerListeners("filter.lastHit", this, value, oldValue); |
+ FilterNotifier.emit("filter.lastHit", this, value, oldValue); |
} |
return this._lastHit; |
}, |
/** |
* String that the domains property should be generated from |
* @type {?string} |
*/ |