vendor/assets/javascripts/dojox/mvc/StoreRefController.js in dojox-rails-0.13.0 vs vendor/assets/javascripts/dojox/mvc/StoreRefController.js in dojox-rails-0.14.0

- old
+ new

@@ -13,10 +13,13 @@ } _b=_4(_b,_8.getStatefulOptions); _8.set(_8._refSourceModelProp,_b); return _b; }); +if(_a.then){ +_a=_2.delegate(_a); +} for(var s in _9){ if(isNaN(s)&&_9.hasOwnProperty(s)&&_2.isFunction(_9[s])){ _a[s]=_9[s]; } } @@ -27,15 +30,18 @@ } if(this._queryObserveHandle){ this._queryObserveHandle.cancel(); } var _d=this; -return _3(this.store.get(id,_c),function(_e){ +result=_3(this.store.get(id,_c),function(_e){ if(_d._beingDestroyed){ return; } -_d.set(_d._refSourceModelProp,_4(_e,_d.getStatefulOptions)); +_e=_4(_e,_d.getStatefulOptions); +_d.set(_d._refSourceModelProp,_e); +return _e; }); +return result; },putStore:function(_f,_10){ if(!(this.store||{}).put){ return; } return this.store.put(_f,_10);