Skip to content
This repository has been archived by the owner on Jul 21, 2021. It is now read-only.

Commit

Permalink
brought up to date with uBO's version
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Feb 29, 2016
1 parent 65924d1 commit c0821da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/udom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c0821da

Please sign in to comment.