mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
code review: one getter per instance is wasteful
This commit is contained in:
parent
2691ac95b4
commit
a927725bd9
1 changed files with 6 additions and 6 deletions
|
@ -1066,14 +1066,14 @@ var FilterBucket = function(a, b) {
|
|||
this.filters[1] = b;
|
||||
}
|
||||
}
|
||||
|
||||
Object.defineProperty(this, 'rtfid', {
|
||||
get: function() {
|
||||
return this.f.rtfid;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Object.defineProperty(FilterBucket.prototype, 'rtfid', {
|
||||
get: function() {
|
||||
return this.f.rtfid;
|
||||
}
|
||||
});
|
||||
|
||||
FilterBucket.prototype.add = function(a) {
|
||||
this.filters.push(a);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue