mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-01 16:49:39 +02:00
code review: one getter per instance is wasteful
This commit is contained in:
parent
2691ac95b4
commit
a927725bd9
@ -1066,14 +1066,14 @@ var FilterBucket = function(a, b) {
|
|||||||
this.filters[1] = 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) {
|
FilterBucket.prototype.add = function(a) {
|
||||||
this.filters.push(a);
|
this.filters.push(a);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user