Roo/bootstrap/Table.js
authoredward <edward@roojs.com>
Tue, 2 Jan 2018 09:09:33 +0000 (17:09 +0800)
committeredward <edward@roojs.com>
Tue, 2 Jan 2018 09:09:33 +0000 (17:09 +0800)
Roo/bootstrap/Table.js

index 5ecd6e1..59045a6 100644 (file)
@@ -718,11 +718,13 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component,  {
 //        Roo.log('ds onload');
         this.clear();
         
-        this.previousStore.each(function(t){
-            
-            this.store.data.add(t.id, t.data);
+        if(this.previousStore){
+            this.previousStore.each(function(t){
+
+                this.store.data.add(t.id, t.data);
 
-        }, this);
+            }, this);
+        }
         
         var _this = this;
         var cm = this.cm;