Skip to content

Commit

Permalink
this fixes gorhill#512
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Jul 20, 2015
1 parent 6fd149e commit 2223f5e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/js/udom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit 2223f5e

Please sign in to comment.