roojs-ui.js
[roojs1] / Roo / PagingToolbar.js
index d1022eb..61145ac 100644 (file)
@@ -28,7 +28,7 @@ Roo.PagingToolbar = function(el, ds, config)
     }
     var items = [];
     if (config.items) {
-        items = this.items;
+        items = config.items;
         config.items = [];
     }
     
@@ -39,10 +39,10 @@ Roo.PagingToolbar = function(el, ds, config)
     this.bind(ds);
     
     // supprot items array.
-    var _this = this;
+   
     Roo.each(items, function(e) {
-        _this.add(Roo.factory(e));
-    });
+        this.add(Roo.factory(e));
+    },this);
     
 };