| Index: lib/subscriptionClasses.js |
| =================================================================== |
| --- a/lib/subscriptionClasses.js |
| +++ b/lib/subscriptionClasses.js |
| @@ -63,49 +63,49 @@ Subscription.prototype = |
| _title: null, |
| _fixedTitle: false, |
| _disabled: false, |
| /** |
| * Title of the filter subscription |
| * @type String |
| */ |
| - get title() this._title, |
| + get title() { return this._title; }, |
|
Wladimir Palant
2014/05/15 07:12:38
Nit: Please add proper line breaks here.
|
| set title(value) |
| { |
| if (value != this._title) |
| { |
| let oldValue = this._title; |
| this._title = value; |
| FilterNotifier.triggerListeners("subscription.title", this, value, oldValue); |
| } |
| return this._title; |
| }, |
| /** |
| * Determines whether the title should be editable |
| * @type Boolean |
| */ |
| - get fixedTitle() this._fixedTitle, |
| + get fixedTitle() { return this._fixedTitle; }, |
|
Wladimir Palant
2014/05/15 07:12:38
Nit: Please add proper line breaks here.
|
| set fixedTitle(value) |
| { |
| if (value != this._fixedTitle) |
| { |
| let oldValue = this._fixedTitle; |
| this._fixedTitle = value; |
| FilterNotifier.triggerListeners("subscription.fixedTitle", this, value, oldValue); |
| } |
| return this._fixedTitle; |
| }, |
| /** |
| * Defines whether the filters in the subscription should be disabled |
| * @type Boolean |
| */ |
| - get disabled() this._disabled, |
| + get disabled() { return this._disabled; }, |
|
Wladimir Palant
2014/05/15 07:12:38
Nit: Please add proper line breaks here.
|
| set disabled(value) |
| { |
| if (value != this._disabled) |
| { |
| let oldValue = this._disabled; |
| this._disabled = value; |
| FilterNotifier.triggerListeners("subscription.disabled", this, value, oldValue); |
| } |
| @@ -288,17 +288,17 @@ SpecialSubscription.prototype = |
| /** |
| * See Subscription.serialize() |
| */ |
| serialize: function(buffer) |
| { |
| Subscription.prototype.serialize.call(this, buffer); |
| if (this.defaults && this.defaults.length) |
| - buffer.push("defaults=" + this.defaults.filter(function(type) type in SpecialSubscription.defaultsMap).join(" ")); |
| + buffer.push("defaults=" + this.defaults.filter((type) => type in SpecialSubscription.defaultsMap).join(" ")); |
| if (this._lastDownload) |
| buffer.push("lastDownload=" + this._lastDownload); |
| } |
| }; |
| SpecialSubscription.defaultsMap = { |
| __proto__: null, |
| "whitelist": WhitelistFilter, |
| @@ -361,33 +361,33 @@ RegularSubscription.prototype = |
| _homepage: null, |
| _lastDownload: 0, |
| /** |
| * Filter subscription homepage if known |
| * @type String |
| */ |
| - get homepage() this._homepage, |
| + get homepage() { return this._homepage; }, |
|
Wladimir Palant
2014/05/15 07:12:38
Nit: Please add proper line breaks here.
|
| set homepage(value) |
| { |
| if (value != this._homepage) |
| { |
| let oldValue = this._homepage; |
| this._homepage = value; |
| FilterNotifier.triggerListeners("subscription.homepage", this, value, oldValue); |
| } |
| return this._homepage; |
| }, |
| /** |
| * Time of the last subscription download (in seconds since the beginning of the epoch) |
| * @type Number |
| */ |
| - get lastDownload() this._lastDownload, |
| + get lastDownload() { return this._lastDownload; }, |
|
Wladimir Palant
2014/05/15 07:12:38
Nit: Please add proper line breaks here.
|
| set lastDownload(value) |
| { |
| if (value != this._lastDownload) |
| { |
| let oldValue = this._lastDownload; |
| this._lastDownload = value; |
| FilterNotifier.triggerListeners("subscription.lastDownload", this, value, oldValue); |
| } |
| @@ -453,17 +453,17 @@ DownloadableSubscription.prototype = |
| _downloadStatus: null, |
| _lastCheck: 0, |
| _errors: 0, |
| /** |
| * Status of the last download (ID of a string) |
| * @type String |
| */ |
| - get downloadStatus() this._downloadStatus, |
| + get downloadStatus() { return this._downloadStatus; }, |
|
Wladimir Palant
2014/05/15 07:12:38
Nit: Please add proper line breaks here.
|
| set downloadStatus(value) |
| { |
| let oldValue = this._downloadStatus; |
| this._downloadStatus = value; |
| FilterNotifier.triggerListeners("subscription.downloadStatus", this, value, oldValue); |
| return this._downloadStatus; |
| }, |
| @@ -474,17 +474,17 @@ DownloadableSubscription.prototype = |
| lastSuccess: 0, |
| /** |
| * Time when the subscription was considered for an update last time (in seconds |
| * since the beginning of the epoch). This will be used to increase softExpiration |
| * if the user doesn't use Adblock Plus for some time. |
| * @type Number |
| */ |
| - get lastCheck() this._lastCheck, |
| + get lastCheck() { return this._lastCheck; }, |
|
Wladimir Palant
2014/05/15 07:12:38
Nit: Please add proper line breaks here.
|
| set lastCheck(value) |
| { |
| if (value != this._lastCheck) |
| { |
| let oldValue = this._lastCheck; |
| this._lastCheck = value; |
| FilterNotifier.triggerListeners("subscription.lastCheck", this, value, oldValue); |
| } |
| @@ -502,17 +502,17 @@ DownloadableSubscription.prototype = |
| * @type Number |
| */ |
| softExpiration: 0, |
| /** |
| * Number of download failures since last success |
| * @type Number |
| */ |
| - get errors() this._errors, |
| + get errors() { return this._errors; }, |
|
Wladimir Palant
2014/05/15 07:12:38
Nit: Please add proper line breaks here.
|
| set errors(value) |
| { |
| if (value != this._errors) |
| { |
| let oldValue = this._errors; |
| this._errors = value; |
| FilterNotifier.triggerListeners("subscription.errors", this, value, oldValue); |
| } |