Upgrade to ExtJS 3.3.1 - Released 11/30/2010
[extjs.git] / examples / ux / TabScrollerMenu.js
index 0819b6f..4e3ae70 100644 (file)
@@ -1,8 +1,8 @@
 /*!
- * Ext JS Library 3.1.1
- * Copyright(c) 2006-2010 Ext JS, LLC
- * licensing@extjs.com
- * http://www.extjs.com/license
+ * Ext JS Library 3.3.1
+ * Copyright(c) 2006-2010 Sencha Inc.
+ * licensing@sencha.com
+ * http://www.sencha.com/license
  */
 Ext.ns('Ext.ux');
 /**
@@ -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);
                        }