Bug 691253 - JavaScript strict warning: chrome://browser/content/browser.js, line 10581: reference to undefined property this._updateFeedTimeout. r=mak
authorTobias Markus <tobbi.bugs@googlemail.com>
Fri, 02 Dec 2011 17:32:06 +0100
changeset 81977 9b6c9d4bd1ffe2de6ca39f091201fc1e02dcf01f
parent 81976 b4d21a25788347ad3edd3d906e3479b7a7c3f495
child 81978 8d8c62c6a4142d0ffb9d0779d5679e4da5376d2b
push idunknown
push userunknown
push dateunknown
reviewersmak
bugs691253, 10581
milestone11.0a1
Bug 691253 - JavaScript strict warning: chrome://browser/content/browser.js, line 10581: reference to undefined property this._updateFeedTimeout. r=mak
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -7673,17 +7673,18 @@ var FeedHandler = {
 
     browserForLink.feeds.push({ href: link.href, title: link.title });
 
     // If this addition was for the current browser, update the UI. For
     // background browsers, we'll update on tab switch.
     if (browserForLink == gBrowser.selectedBrowser) {
       // Batch updates to avoid updating the UI for multiple onLinkAdded events
       // fired within 100ms of each other.
-      clearTimeout(this._updateFeedTimeout);
+      if (this._updateFeedTimeout)
+        clearTimeout(this._updateFeedTimeout);
       this._updateFeedTimeout = setTimeout(this.updateFeeds.bind(this), 100);
     }
   }
 };
 
 /**
  * Re-open a closed tab.
  * @param aIndex