mirror of https://github.com/gorhill/uBlock.git
minor code review
This commit is contained in:
parent
bc30979689
commit
f7ed3fda54
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue