src/core/util/util.js
function(nodes) {
      nodes = nodes || [];

      var results = [];
      for (var i = 0; i < nodes.length; ++i) {
        results.push(nodes.item(i));
      }
      return results;
    }
function(nodes) {
      nodes = nodes || [];

      var results = [];
      for (var i = 0; i < nodes.length; ++i) {
        results.push(nodes.item(i));
      }
      return results;
    }
function ( nodes ) { nodes = nodes || [ ] ; var results = [ ] ; for ( var i = 0 ; i < nodes . length ; ++ i ) { results . push ( nodes . item ( i ) ) ; } return results ; }
Annoying method to copy nodes to an array, thanks to IE
Annoying method to copy nodes to an array thanks to IE