mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-04 08:37:11 +02:00
Ensure getter/setter are called with proper context
Related issue: - https://github.com/uBlockOrigin/uAssets/issues/9110
This commit is contained in:
parent
9e394aa02b
commit
e4b8f2ef2d
@ -81,13 +81,13 @@
|
||||
get: function() {
|
||||
validate();
|
||||
return desc instanceof Object
|
||||
? desc.get()
|
||||
? desc.get.call(owner)
|
||||
: value;
|
||||
},
|
||||
set: function(a) {
|
||||
validate();
|
||||
if ( desc instanceof Object ) {
|
||||
desc.set(a);
|
||||
desc.set.call(owner, a);
|
||||
} else {
|
||||
value = a;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user