Bug 1274520 part 3 - Remove unused code in touch controls. r?gijs
MozReview-Commit-ID: 87sNVUSHAzi
--- 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;
},