Răsfoiți Sursa

修复 res.isRunning 丢失的问题

unknown 5 ani în urmă
părinte
comite
da45057bee

+ 2 - 2
o2web/source/x_component_AppCenter/Main.js

@@ -370,8 +370,8 @@ MWF.xApplication.AppCenter.Exporter = new Class({
                         "text": this.lp.cancel,
                         "action": function(){
                             this.close();
-                            if (_self.structureRes){
-                                if (_self.structureRes.isRunning()){_self.structureRes.cancel();}
+                            if (_self.structureRes && _self.structureRes.res){
+                                if (_self.structureRes.res.isRunning()){_self.structureRes.res.cancel();}
                                 _self.structureRes = null;
                             }
                         }

+ 2 - 2
o2web/source/x_component_process_Xform/Statement.js

@@ -17,8 +17,8 @@ MWF.xApplication.process.Xform.Statement = MWF.APPStatement =  new Class({
     },
     reload: function(){
         if (this.view){
-            if (this.view.loadViewRes) if (this.view.loadViewRes.isRunning()) this.view.loadViewRes.cancel();
-            if (this.view.getViewRes) if (this.view.getViewRes.isRunning()) this.view.getViewRes.cancel();
+            if (this.view.loadViewRes && this.view.loadViewRes.res) if (this.view.loadViewRes.res.isRunning()) this.view.loadViewRes.res.cancel();
+            if (this.view.getViewRes && this.view.getViewRes.res) if (this.view.getViewRes.res.isRunning()) this.view.getViewRes.res.cancel();
         }
         this.node.empty();
         this.loadView();

+ 2 - 2
o2web/source/x_component_process_Xform/View.js

@@ -25,8 +25,8 @@ MWF.xApplication.process.Xform.View = MWF.APPView =  new Class({
     },
     reload: function(){
         if (this.view){
-            if (this.view.loadViewRes) if (this.view.loadViewRes.isRunning()) this.view.loadViewRes.cancel();
-            if (this.view.getViewRes) if (this.view.getViewRes.isRunning()) this.view.getViewRes.cancel();
+            if (this.view.loadViewRes && this.view.loadViewRes.res) if (this.view.loadViewRes.res.isRunning()) this.view.loadViewRes.res.cancel();
+            if (this.view.getViewRes && this.view.getViewRes.res) if (this.view.getViewRes.res.isRunning()) this.view.getViewRes.res.cancel();
         }
         this.node.empty();
         this.loadView();