vendor/assets/javascripts/dojox/mvc/_Controller.js in dojox-rails-0.13.0 vs vendor/assets/javascripts/dojox/mvc/_Controller.js in dojox-rails-0.14.0
- old
+ new
@@ -19,20 +19,31 @@
}
catch(e){
}
if(!_6){
this.startup();
+}else{
+_6.setAttribute("widgetId",this.id);
}
},startup:function(){
if(!this._applyAttributes){
this._startAtWatchHandles();
}
this.inherited(arguments);
},destroy:function(){
+this._beingDestroyed=true;
if(!this._applyAttributes){
this._stopAtWatchHandles();
}
this.inherited(arguments);
+if(!this._applyAttributes){
+try{
+require("dijit/registry").remove(this.id);
+}
+catch(e){
+}
+}
+this._destroyed=true;
},set:function(_8,_9){
if(typeof _8==="object"){
for(var x in _8){
if(_8.hasOwnProperty(x)){
this.set(x,_8[x]);