remove debugging code
[roojs1] / Roo / LoadMask.js
index 73f9a5f..923099a 100644 (file)
@@ -81,33 +81,29 @@ Roo.LoadMask.prototype = {
         
         if (typeof(arguments[3]) != 'undefined') {
             Roo.MessageBox.alert("Error loading",arguments[3]);
-        } else {
-            /*
-            try {
-                if (this.store && typeof(this.store.reader.jsonData.errorMsg) != 'undefined') {
-                    Roo.MessageBox.alert("Error loading",this.store.reader.jsonData.errorMsg);
-                }   
-            } catch(e) {
-                
-            }
-            */
+        } 
+        /*
+        try {
+            if (this.store && typeof(this.store.reader.jsonData.errorMsg) != 'undefined') {
+                Roo.MessageBox.alert("Error loading",this.store.reader.jsonData.errorMsg);
+            }   
+        } catch(e) {
+            
         }
-        // te
-        
-        
-        
-        this.el.unmask(this.removeMask);
+        */
+    
+        (function() { this.el.unmask(this.removeMask); }).defer(50, this);
     },
     // private
     onLoad : function()
     {
-        this.el.unmask(this.removeMask);
+        (function() { this.el.unmask(this.removeMask); }).defer(50, this);
     },
 
     // private
     onBeforeLoad : function(){
         if(!this.disabled){
-            this.el.mask(this.msg, this.msgCls);
+            (function() { this.el.mask(this.msg, this.msgCls); }).defer(50, this);
         }
     },