1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 04:49:12 +02:00

code review

This commit is contained in:
gorhill 2015-11-15 08:56:36 -05:00
parent 278588e016
commit 4cebefd5b5
2 changed files with 1 additions and 7 deletions

View File

@ -714,7 +714,6 @@ vAPI.noTabId = '-1';
vAPI.tabs = {};
/******************************************************************************/
vAPI.tabs.registerListeners = function() {
@ -848,11 +847,6 @@ vAPI.tabs.open = function(details) {
continue;
}
// Or simply .equals if we care about the fragment
if ( URI.equalsExceptRef(browser.currentURI) === false ) {
continue;
}
this.select(tab);
// Update URL if fragment is different

View File

@ -253,7 +253,7 @@ housekeep itself.
}
this.stack.push(new StackEntry(url));
this.update();
if ( this.commitTimer === null ) {
if ( this.commitTimer !== null ) {
clearTimeout(this.commitTimer);
}
this.commitTimer = vAPI.setTimeout(this.onCommit.bind(this), 1000);