//>>built
define("dojox/mobile/_StoreListMixin",["dojo/_base/array","dojo/_base/declare","./_StoreMixin","./ListItem"],function(c,e,f,g){return e("dojox.mobile._StoreListMixin",f,{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 b={};a.label||(b.label=a[this.labelProperty]);for(var d in a)b[this.itemMap&&this.itemMap[d]||d]=a[d];return new g(b)},generateList:function(a){this.append||
c.forEach(this.getChildren(),function(a){a.destroyRecursive()});c.forEach(a,function(a){this.addChild(this.createListItem(a));a[this.childrenProperty]&&c.forEach(a[this.childrenProperty],function(a){this.addChild(this.createListItem(a))},this)},this)},onComplete:function(a){this.generateList(a)},onError:function(){},onUpdate:function(a,b){b===this.getChildren().length?this.addChild(this.createListItem(a)):this.getChildren()[b].set(a)},onDelete:function(a,b){this.getChildren()[b].destroyRecursive()}})});