//>>built define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/when ../Store ../QueryResults".split(" "),function(h,b,m,g,q,r){b=function(a){return function(){var c=this.objectStore;return c[a].apply(c,arguments)}};return h(q,{objectStore:null,get:function(){var a=this,c=this.objectStore;return g(c.get.apply(c,arguments),function(c){return a._restore(c)})},put:b("put"),add:b("add"),remove:b("remove"),getIdentity:b("getIdentity"),_setIdentity:function(a,c){return a[this.objectStore.idProperty]=c}, fetch:function(){return this.fetchRange()},fetchRange:function(a){function c(a){for(var b=0;b