Bug 1164253 - Save request is sent twice for every button press. r=jaws, a=dolske
authorJustin Dolske <dolske@mozilla.com>
Wed, 13 May 2015 16:18:46 -0700
changeset 262165 2fc97db07f559d8495d4cd46a76d1327e3ffa4d4
parent 262164 c7a87fac718e2410aad5e18007594927c79bcdb5
child 262166 8f3912d0188da13e12c42b4dabde56c9210c2f55
push id8020
push userryanvm@gmail.com
push dateFri, 15 May 2015 15:47:35 +0000
treeherdermozilla-aurora@b03c5f1a77a1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws, dolske
bugs1164253
milestone40.0a2
Bug 1164253 - Save request is sent twice for every button press. r=jaws, a=dolske
browser/components/pocket/Pocket.jsm
--- a/browser/components/pocket/Pocket.jsm
+++ b/browser/components/pocket/Pocket.jsm
@@ -45,17 +45,17 @@ let Pocket = {
     }, 0);
   },
 
   onFrameLoaded(event) {
     let document = event.currentTarget.ownerDocument;
     let window = document.defaultView;
     let iframe = document.getElementById('pocket-panel-iframe');
 
-    iframe.removeEventListener("load", Pocket.onPanelLoaded, true);
+    iframe.removeEventListener("load", Pocket.onFrameLoaded, true);
     window.pktUI.pocketPanelDidShow();
   },
 
   onPanelViewHiding(event) {
     let window = event.target.ownerDocument.defaultView;
     window.pktUI.pocketPanelDidHide(event);
   },