Bug 1164253 - Save request is sent twice for every button press. r=jaws a=dolske
authorJustin Dolske <dolske@mozilla.com>
Wed, 13 May 2015 20:44:52 -0700
changeset 260488 89ef57a1733a
parent 260487 98b2f2b5af65
child 260489 55c04a549775
push id799
push userjdolske@mozilla.com
push date2015-05-14 03:46 +0000
treeherdermozilla-release@11c4678a21bb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws, dolske
bugs1164253
milestone38.0.1
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);
   },