mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-11 17:41:03 +01:00
this fixes #512
This commit is contained in:
parent
6fd149eb0a
commit
2223f5e457
1 changed files with 7 additions and 1 deletions
|
@ -517,8 +517,14 @@ DOMList.prototype.css = function(prop, value) {
|
|||
if ( value === undefined ) {
|
||||
return i ? this.nodes[0].style[prop] : undefined;
|
||||
}
|
||||
if ( value !== '' ) {
|
||||
while ( i-- ) {
|
||||
this.nodes[i].style.setProperty(prop, value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
while ( i-- ) {
|
||||
this.nodes[i].style[prop] = value;
|
||||
this.nodes[i].style.removeProperty(prop);
|
||||
}
|
||||
return this;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue