Bug 1274520 part 3 - Remove unused code in touch controls. r?gijs draft
authorXidorn Quan <me@upsuper.org>
Mon, 23 May 2016 13:13:22 +1000
changeset 369575 d8c273c7ed55ccc3bd6cc99f84a41ccaa774866f
parent 369552 bb4ae6ce6033aeb33b39302d6099616491419fb1
child 369576 ceead96b0612a4b891029e1f04cec60360deb426
child 369578 4143bbe6522def64190aa20dff18c0cbfe6bb489
push id18851
push userxquan@mozilla.com
push dateMon, 23 May 2016 03:16:27 +0000
reviewersgijs
bugs1274520
milestone49.0a1
Bug 1274520 part 3 - Remove unused code in touch controls. r?gijs MozReview-Commit-ID: 87sNVUSHAzi
toolkit/content/widgets/videocontrols.xml
--- a/toolkit/content/widgets/videocontrols.xml
+++ b/toolkit/content/widgets/videocontrols.xml
@@ -1690,25 +1690,16 @@
             },
 
             handleEvent : function (aEvent) {
               if (aEvent.type == "transitionend") {
                 this.firstShow = false;
                 this.videocontrols.removeEventListener("transitionend", this, false);
                 return;
               }
-
-              if (this.videocontrols.randomID != this.Utils.randomID)
-                this.terminateEventListeners();
-
-            },
-
-            terminateEventListeners : function () {
-              for (var event of this.videoEvents)
-                this.Utils.video.removeEventListener(event, this, false);
             },
 
             isVideoCasting : function () {
               if (this.video.mozIsCasting)
                 return true;
               return false;
             },