Index: ui/file_manager/video_player/js/media_controls.js |
diff --git a/ui/file_manager/video_player/js/media_controls.js b/ui/file_manager/video_player/js/media_controls.js |
index de0b8279bb99c46d0b79710ab540d7920e39b750..aa49c92f9d02b2a21fb758b87ddf757879a72a50 100644 |
--- a/ui/file_manager/video_player/js/media_controls.js |
+++ b/ui/file_manager/video_player/js/media_controls.js |
@@ -1038,9 +1038,9 @@ VideoControls.prototype.showIconFeedback_ = function() { |
if (stateIcon.getAttribute('state') === state) |
stateIcon.removeAttribute('state'); |
- stateIcon.removeEventListener('webkitAnimationEnd', onAnimationEnd); |
+ stateIcon.removeEventListener('animationend', onAnimationEnd); |
}.bind(null, newState); |
- stateIcon.addEventListener('webkitAnimationEnd', onAnimationEnd); |
+ stateIcon.addEventListener('animationend', onAnimationEnd); |
// Shows the icon with animation. |
stateIcon.setAttribute('state', newState); |
@@ -1060,10 +1060,10 @@ VideoControls.prototype.showTextBanner_ = function(identifier) { |
setTimeout(function() { |
var onAnimationEnd = function(event) { |
this.textBanner_.removeEventListener( |
- 'webkitAnimationEnd', onAnimationEnd); |
+ 'animationend', onAnimationEnd); |
this.textBanner_.removeAttribute('visible'); |
}.bind(this); |
- this.textBanner_.addEventListener('webkitAnimationEnd', onAnimationEnd); |
+ this.textBanner_.addEventListener('animationend', onAnimationEnd); |
this.textBanner_.setAttribute('visible', 'true'); |
}.bind(this), 0); |