From 06c21e0a46eff1268bfc70ae55a84529aebd01da Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Tue, 23 Sep 2014 21:03:32 +0200 Subject: [PATCH] VideoElement: patch removeElement, not remove --- source/Ox.UI/js/Video/VideoElement.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/Ox.UI/js/Video/VideoElement.js b/source/Ox.UI/js/Video/VideoElement.js index 445cfe47..7178421d 100644 --- a/source/Ox.UI/js/Video/VideoElement.js +++ b/source/Ox.UI/js/Video/VideoElement.js @@ -468,15 +468,14 @@ Ox.VideoElement = function(options, self) { return that; }; - self.superRemove = that.remove.bind(that); - that.remove = function() { + that.removeElement = function() { clearInterval(self.timeupdate); //Chrome does not properly release resources, reset manually //http://code.google.com/p/chromium/issues/detail?id=31014 self.$videos.forEach(function($video) { $video.attr({src: ''}); }); - return self.superRemove(arguments); + return Ox.Element.prototype.removeElement.apply(that, arguments); }; /*@