1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-23 10:52:43 +01:00

minor code review

This commit is contained in:
gorhill 2015-07-16 18:15:57 -04:00
parent bc30979689
commit f7ed3fda54

View File

@ -217,7 +217,7 @@ housekeep itself.
// 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
// want to slush it.
// want to flush it.
TabContext.prototype.autodestroy = function() {
if ( vAPI.isBehindTheSceneTabId(this.tabId) ) {
return;
@ -443,7 +443,7 @@ vAPI.tabs.onUpdated = function(tabId, changeInfo, tab) {
/******************************************************************************/
vAPI.tabs.onClosed = function(tabId) {
if ( tabId < 0 ) {
if ( vAPI.isBehindTheSceneTabId(tabId) ) {
return;
}
µb.unbindTabFromPageStats(tabId);