diff --git a/js/app/models/AliasNode.js b/js/app/models/AliasNode.js index fe3f88b..c8de1f3 100644 --- a/js/app/models/AliasNode.js +++ b/js/app/models/AliasNode.js @@ -117,7 +117,7 @@ Ext.define('amdaModel.AliasNode', { // Replace alias by parameter name in active window Ext.Array.each(myDesktopApp.paramModulesID, function(id){ var module = myDesktopApp.getLoadedModule(id); - if (module) { + if (module && typeof module.getUiContent() !== "undefined") { module.getUiContent().updateConstruct("#"+this.get('text'),this.get('id').substr(6)); } }, this); diff --git a/js/app/views/AliasUI.js b/js/app/views/AliasUI.js index 7c23af7..c30b03b 100644 --- a/js/app/views/AliasUI.js +++ b/js/app/views/AliasUI.js @@ -86,7 +86,7 @@ Ext.define('amdaUI.AliasUI',{ updateConstruct : function(oldval,newval) { Ext.Array.each(myDesktopApp.paramModulesID, function(id){ var targetModule = myDesktopApp.getLoadedModule(id); - if (targetModule) + if (targetModule && typeof targetModule.getUiContent() !== "undefined") targetModule.getUiContent().updateConstruct(oldval,newval); }); }, -- libgit2 0.21.2