Roo/JsonView.js
authorAlan Knowles <alan@roojs.com>
Mon, 6 Feb 2017 05:05:18 +0000 (13:05 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 6 Feb 2017 05:05:18 +0000 (13:05 +0800)
Roo/JsonView.js

index 37259f4..36a2f9e 100644 (file)
@@ -149,17 +149,22 @@ Roo.extend(Roo.JsonView, Roo.View, {
     },
 
     // note - render is a standard framework call...
-    // using it for the response is really flaky...
+    // using it for the response is really flaky... - it's called by UpdateManager normally, except when called by the XComponent/addXtype.
     render : function(el, response){
+        
         this.clearSelections();
         this.el.update("");
         var o;
         try{
-            o = Roo.util.JSON.decode(response.responseText);
-            if(this.jsonRoot){
-                
-                o = o[this.jsonRoot];
-            }
+            if (response != '') {
+                    
+                }
+                o = Roo.util.JSON.decode(response.responseText);
+                if(this.jsonRoot){
+                    
+                    o = o[this.jsonRoot];
+                }
+        }
         } catch(e){
         }
         /**