Browse Source

Cleanup for DOMTitleChanged listener

pull/2/head
AlexVallat 10 years ago
committed by gorhill
parent
commit
ca8330d4f0
  1. 2
      platform/firefox/vapi-background.js

2
platform/firefox/vapi-background.js

@ -296,7 +296,6 @@ var windowWatcher = {
// Fennec
tabContainer = tabBrowser.deck;
tabContainer.addEventListener('DOMTitleChanged', tabWatcher.onFennecLocationChange);
} else if ( tabBrowser.tabContainer ) {
// desktop Firefox
tabContainer = tabBrowser.tabContainer;
@ -471,6 +470,7 @@ vAPI.tabs.registerListeners = function() {
if ( tabBrowser.deck ) {
// Fennec
tabContainer = tabBrowser.deck;
tabContainer.removeEventListener('DOMTitleChanged', tabWatcher.onFennecLocationChange);
} else if ( tabBrowser.tabContainer ) {
tabContainer = tabBrowser.tabContainer;
tabBrowser.removeTabsProgressListener(tabWatcher);

Loading…
Cancel
Save