//>>built
define("dojox/mobile/_DataListMixin",["dojo/_base/array","dojo/_base/declare","dijit/registry","./_DataMixin","./ListItem"],function(d,e,f,g,h){return e("dojox.mobile._DataListMixin",g,{append:!1,itemMap:null,buildRendering:function(){this.inherited(arguments);if(this.store){var a=this.store;this.store=null;this.setStore(a,this.query,this.queryOptions)}},createListItem:function(a){var c={},b=this.store.getLabelAttributes(a),e=b?b[0]:null;d.forEach(this.store.getAttributes(a),function(b){b===e?c.label=
this.store.getLabel(a):c[this.itemMap&&this.itemMap[b]||b]=this.store.getValue(a,b)},this);b=new h(c);a._widgetId=b.id;return b},generateList:function(a){this.append||d.forEach(this.getChildren(),function(a){a.destroyRecursive()});d.forEach(a,function(a){this.addChild(this.createListItem(a))},this)},onComplete:function(a,c){this.generateList(a,c)},onError:function(){},onSet:function(){},onNew:function(a){this.addChild(this.createListItem(a))},onDelete:function(a){f.byId(a._widgetId).destroyRecursive()},
onStoreClose:function(){this.store.clearOnClose&&this.refresh()}})});