minor code review

This commit is contained in:
gorhill 2015-07-16 18:15:57 -04:00
parent bc30979689
commit f7ed3fda54
1 changed files with 2 additions and 2 deletions

View File

@ -217,7 +217,7 @@ housekeep itself.
// This takes care of orphanized tab contexts. Can't be started for all // This takes care of orphanized tab contexts. Can't be started for all
// contexts, as the behind-the-scene context is permanent -- so we do not // contexts, as the behind-the-scene context is permanent -- so we do not
// want to slush it. // want to flush it.
TabContext.prototype.autodestroy = function() { TabContext.prototype.autodestroy = function() {
if ( vAPI.isBehindTheSceneTabId(this.tabId) ) { if ( vAPI.isBehindTheSceneTabId(this.tabId) ) {
return; return;
@ -443,7 +443,7 @@ vAPI.tabs.onUpdated = function(tabId, changeInfo, tab) {
/******************************************************************************/ /******************************************************************************/
vAPI.tabs.onClosed = function(tabId) { vAPI.tabs.onClosed = function(tabId) {
if ( tabId < 0 ) { if ( vAPI.isBehindTheSceneTabId(tabId) ) {
return; return;
} }
µb.unbindTabFromPageStats(tabId); µb.unbindTabFromPageStats(tabId);