Use better method name

This commit is contained in:
YUKI Hiroshi 2015-11-19 18:33:07 +09:00
parent 03fb19d810
commit e950d56879

View File

@ -1605,7 +1605,7 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
delayedPostProcess(this, b, splitter, toggler); delayedPostProcess(this, b, splitter, toggler);
this.updateTabbarOverflow(); this.updateTabbarOverflow();
this.updateAllTabsButton(b); this.updateAllTabsButton(b);
this.updateAllTabsCount(); this.updateAllTabsAsParent();
delayedPostProcess = null; delayedPostProcess = null;
this.mTabBrowser.style.visibility = ''; this.mTabBrowser.style.visibility = '';
@ -2780,7 +2780,7 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
clearTimeout(this.timers[aPrefName]); clearTimeout(this.timers[aPrefName]);
this.timers[aPrefName] = setTimeout((function() { this.timers[aPrefName] = setTimeout((function() {
try { try {
this.updateAllTabsCount(); this.updateAllTabsAsParent();
} }
catch(e) { catch(e) {
this.defaultErrorHandler(e); this.defaultErrorHandler(e);
@ -2795,7 +2795,7 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
clearTimeout(this.timers[aPrefName]); clearTimeout(this.timers[aPrefName]);
this.timers[aPrefName] = setTimeout((function() { this.timers[aPrefName] = setTimeout((function() {
try { try {
this.updateAllTabsCount(); this.updateAllTabsAsParent();
} }
catch(e) { catch(e) {
this.defaultErrorHandler(e); this.defaultErrorHandler(e);
@ -5968,7 +5968,7 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
aTab.removeAttribute('soundplaying', true); aTab.removeAttribute('soundplaying', true);
}, },
updateAllTabsCount : function TSTBrowser_updateAllTabsCount() updateAllTabsAsParent : function TSTBrowser_updateAllTabsAsParent()
{ {
var tabs = this.rootTabs; var tabs = this.rootTabs;
for (let i = 0, maxi = tabs.length; i < maxi; i++) for (let i = 0, maxi = tabs.length; i < maxi; i++)