Function to return all rows in the table as an array of items.
var items = []; var i; if(this._rootNode.rows){//table for(i=0; i<this._rootNode.rows.length; i++){ items.push(this._rootNode.rows[i]); } }else{ //list for(i=0; i<this._rootNode.childNodes.length; i++){ if (this._rootNode.childNodes[i].nodeType===1){ items.push(this._rootNode.childNodes[i]); } } } return items; //array