From 3e47fa538f7b283baabaeb8083267f5ba82d5dae Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sat, 20 Sep 2014 12:30:14 +0200 Subject: [PATCH] make superRemove a bound function --- source/Ox.UI/js/Video/VideoElement.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/Ox.UI/js/Video/VideoElement.js b/source/Ox.UI/js/Video/VideoElement.js index 5c54e429..445cfe47 100644 --- a/source/Ox.UI/js/Video/VideoElement.js +++ b/source/Ox.UI/js/Video/VideoElement.js @@ -468,7 +468,7 @@ Ox.VideoElement = function(options, self) { return that; }; - that.superRemove = that.remove; + self.superRemove = that.remove.bind(that); that.remove = function() { clearInterval(self.timeupdate); //Chrome does not properly release resources, reset manually @@ -476,8 +476,8 @@ Ox.VideoElement = function(options, self) { self.$videos.forEach(function($video) { $video.attr({src: ''}); }); - return that.superRemove.apply(that, arguments); - } + return self.superRemove(arguments); + }; /*@ videoHeight get videoHeight