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 a2b44eb160d9e17ab3ce523e4c8e10ae94bce0ca..50581ef4287b7829cfaf18e4ab2738384addcccc 100644 |
--- a/ui/file_manager/video_player/js/media_controls.js |
+++ b/ui/file_manager/video_player/js/media_controls.js |
@@ -934,9 +934,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); |
@@ -956,10 +956,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); |