From 974d61d9b2872ba132bf75da3b4eac03130df455 Mon Sep 17 00:00:00 2001 From: Brian Nicholson Date: Thu, 24 Jan 2013 13:52:05 -0800 Subject: [PATCH] Bug 834400 - Use bind() in download callbacks. r=mfinkle --HG-- extra : rebase_source : a736b3f7d71d47230370e551f620b9362f45f265 --- mobile/android/chrome/content/aboutDownloads.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/android/chrome/content/aboutDownloads.js b/mobile/android/chrome/content/aboutDownloads.js index d981054e9499..746b84d4147b 100644 --- a/mobile/android/chrome/content/aboutDownloads.js +++ b/mobile/android/chrome/content/aboutDownloads.js @@ -439,7 +439,7 @@ let Downloads = { } catch (ex) { this.logError("openDownload() " + ex, aDownload); } - }); + }.bind(this)); }, removeDownload: function dl_removeDownload(aItem) { @@ -458,7 +458,7 @@ let Downloads = { } catch (ex) { this.logError("removeDownload() " + ex, aDownload); } - }); + }.bind(this)); aItem.parentNode.removeChild(aItem); },