mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00: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