//>>built define("dojox/data/HtmlTableStore",["dojo/_base/kernel","dojo/_base/declare","dojo/_base/lang","dojo/dom","dojo/_base/array","dojo/_base/xhr","dojo/_base/sniff","dojo/_base/window","dojo/data/util/simpleFetch","dojo/data/util/filter","dojox/xml/parser"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b){ var _c=_2("dojox.data.HtmlTableStore",null,{constructor:function(_d){ _1.deprecated("dojox.data.HtmlTableStore","Please use dojox.data.HtmlStore"); if(_d.url){ if(!_d.tableId){ throw new Error("dojo.data.HtmlTableStore: Cannot instantiate using url without an id!"); } this.url=_d.url; this.tableId=_d.tableId; }else{ if(_d.tableId){ this._rootNode=_4.byId(_d.tableId); this.tableId=this._rootNode.id; }else{ this._rootNode=_4.byId(this.tableId); } this._getHeadings(); for(var i=0;i0)?_14[0]:_13; },getValues:function(_15,_16){ this._assertIsItem(_15); var _17=this._assertIsAttribute(_16); if(_17>-1){ return [_b.textContent(_15.cells[_17])]; } return []; },getAttributes:function(_18){ this._assertIsItem(_18); var _19=[]; for(var i=0;i0; },containsValue:function(_1c,_1d,_1e){ var _1f=undefined; if(typeof _1e==="string"){ _1f=_a.patternToRegExp(_1e,false); } return this._containsValue(_1c,_1d,_1e,_1f); },_containsValue:function(_20,_21,_22,_23){ var _24=this.getValues(_20,_21); for(var i=0;i<_24.length;++i){ var _25=_24[i]; if(typeof _25==="string"&&_23){ return (_25.match(_23)!==null); }else{ if(_22===_25){ return true; } } } return false; },isItem:function(_26){ if(_26&&_26.store&&_26.store===this){ return true; } return false; },isItemLoaded:function(_27){ return this.isItem(_27); },loadItem:function(_28){ this._assertIsItem(_28.item); },_fetchItems:function(_29,_2a,_2b){ if(this._rootNode){ this._finishFetchItems(_29,_2a,_2b); }else{ if(!this.url){ this._rootNode=_4.byId(this.tableId); this._getHeadings(); for(var i=0;i0){ _37=_38.slice(0,_38.length); } _35(_37,_34); } },getFeatures:function(){ return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true}; },close:function(_3e){ },getLabel:function(_3f){ if(this.isItem(_3f)){ return "Table Row #"+this.getIdentity(_3f); } return undefined; },getLabelAttributes:function(_40){ return null; },getIdentity:function(_41){ this._assertIsItem(_41); if(!_7("opera")){ return _41.sectionRowIndex; }else{ return (_5.indexOf(this._rootNode.rows,_41)-1); } },getIdentityAttributes:function(_42){ return null; },fetchItemByIdentity:function(_43){ var _44=_43.identity; var _45=this; var _46=null; var _47=null; if(!this._rootNode){ if(!this.url){ this._rootNode=_4.byId(this.tableId); this._getHeadings(); for(var i=0;i