Roo/form/ComboBoxArray.js
[roojs1] / Roo / PagingToolbar.js
index 17765e4..61145ac 100644 (file)
@@ -27,9 +27,9 @@ Roo.PagingToolbar = function(el, ds, config)
         el = config.container;
     }
     var items = [];
-    if (this.items) {
-        items = this.items;
-        this.items = [];
+    if (config.items) {
+        items = config.items;
+        config.items = [];
     }
     
     Roo.PagingToolbar.superclass.constructor.call(this, el, null, config);
@@ -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);
     
 };