Upgrade to ExtJS 3.2.2 - Released 06/02/2010
[extjs.git] / examples / ux / TabScrollerMenu.js
index 04d5a92..7168a47 100644 (file)
@@ -1,5 +1,5 @@
 /*!
- * Ext JS Library 3.2.0
+ * Ext JS Library 3.2.2
  * Copyright(c) 2006-2010 Ext JS, Inc.
  * licensing@extjs.com
  * http://www.extjs.com/license
@@ -192,8 +192,8 @@ Ext.ux.TabScrollerMenu =  Ext.extend(Object, {
                        }
                        else {
                                this.items.each(function(item) {
-                                       if (item.id != curActive.id && ! item.hidden) {
-                                               menuItems.push(this.autoGenMenuItem(item));
+                                       if (item.id != curActive.id && !item.hidden) {
+                        this.tabsMenu.add(this.autoGenMenuItem(item));
                                        }
                                }, this);
                        }