From 95f0f08831adc32275e310b8b7476d463cdf9269 Mon Sep 17 00:00:00 2001 From: Raymond Lee Date: Mon, 9 Aug 2010 01:03:11 +0800 Subject: [PATCH] Fixed some references after the name change to GroupItem(s) (Bug 583414) --- browser/base/content/browser-tabview.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/browser/base/content/browser-tabview.js b/browser/base/content/browser-tabview.js index d0e8e491aafe..91971534fa1f 100644 --- a/browser/base/content/browser-tabview.js +++ b/browser/base/content/browser-tabview.js @@ -75,13 +75,13 @@ let TabView = { if (tabViewWindow) { let activeGroup = tab.tabItem.parent; - let groups = tabViewWindow.Groups.groups; + let groupItems = tabViewWindow.GroupItems.groupItems; let self = this; - groups.forEach(function(group) { - if (group.getTitle().length > 0 && - (!activeGroup || activeGroup.id != group.id)) { - let menuItem = self._createGroupMenuItem(group); + groupItems.forEach(function(groupItem) { + if (groupItem.getTitle().length > 0 && + (!activeGroup || activeGroup.id != groupItem.id)) { + let menuItem = self._createGroupMenuItem(groupItem); popup.appendChild(menuItem); isEmpty = false; } @@ -90,21 +90,21 @@ let TabView = { document.getElementById("context_namedGroups").hidden = isEmpty; }, - _createGroupMenuItem : function(group) { + _createGroupMenuItem : function(groupItem) { let menuItem = document.createElement("menuitem") menuItem.setAttribute("class", "group"); - menuItem.setAttribute("label", group.getTitle()); + menuItem.setAttribute("label", groupItem.getTitle()); menuItem.setAttribute( "oncommand", - "TabView.moveTabTo(TabContextMenu.contextTab,'" + group.id + "')"); + "TabView.moveTabTo(TabContextMenu.contextTab,'" + groupItem.id + "')"); return menuItem; }, - moveTabTo: function(tab, groupId) { + moveTabTo: function(tab, groupItemId) { let tabViewWindow = document.getElementById("tab-view").contentWindow; if (tabViewWindow) - tabViewWindow.Groups.moveTabToGroup(tab, groupId); + tabViewWindow.GroupItems.moveTabToGroupItem(tab, groupItemId); } };