Sha256: 22e11cc8055486c2da22d2575dabb3f67b1ff83b7bd61ff608d47aa47b490092
Contents?: true
Size: 1.29 KB
Versions: 3
Compression:
Stored size: 1.29 KB
Contents
//>>built define("dojox/app/utils/mvcModel",["dojo/_base/lang","dojo/Deferred","dojo/when","dojo/_base/config","dojo/store/DataStore","dojox/mvc/getStateful","dojo/has"],function(_1,_2,_3,_4,_5,_6,_7){ return function(_8,_9,_a){ var _b={}; var _c=new _2(); var _d; if(_9.store&&_9.store.params&&_9.store.params.data){ _d={"store":_9.store.store,"query":_9.store.query?_9.store.query:{}}; }else{ if(_9.datastore){ var _e={}; for(var _a in _9.query){ if(_a.charAt(0)!=="_"){ _e[_a]=_9.query[_a]; } } _d={"store":new _5({store:_9.datastore.store}),"query":_e}; }else{ if(_9.data){ if(_9.data&&_1.isString(_9.data)){ _9.data=_1.getObject(_9.data); } _d={"data":_9.data,query:{}}; } } } var _f=null; var _10=_8[_a].type?_8[_a].type:"dojox/mvc/EditStoreRefListController"; var def=new _2(); require([_10],function(_11){ def.resolve(_11); }); _3(def,function(_12){ _f=new _12(_d); var _13; try{ if(_f.queryStore){ _13=_f.queryStore(_d.query); }else{ var _14=_f._refSourceModelProp||_f._refModelProp||"model"; _f.set(_14,_6(_d.data)); _13=_f; } } catch(ex){ _c.reject("load mvc model error."); return _c.promise; } if(_13.then){ _3(_13,_1.hitch(this,function(){ _b=_f; _c.resolve(_b); return _b; }),function(){ loadModelLoaderDeferred.reject("load model error."); }); }else{ _b=_f; _c.resolve(_b); return _b; } }); return _c; }; });
Version data entries
3 entries across 3 versions & 1 rubygems