1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-02 02:14:52 +12:00

brought up to date with uBO's version

This commit is contained in:
gorhill 2016-02-29 09:31:22 -05:00
parent 65924d1be8
commit c0821da875

View file

@ -173,7 +173,7 @@ var doesMatchSelector = function(node, selector) {
/******************************************************************************/
DOMList.prototype.nodeAt = function(i) {
return this.nodes[i];
return this.nodes[i] || null;
};
DOMList.prototype.at = function(i) {
@ -518,7 +518,7 @@ DOMList.prototype.css = function(prop, value) {
return i ? this.nodes[0].style[prop] : undefined;
}
if ( value !== '' ) {
while ( i-- ) {
while ( i-- ) {
this.nodes[i].style.setProperty(prop, value);
}
return this;