make superRemove a bound function

This commit is contained in:
rlx 2014-09-20 12:30:14 +02:00
parent 94a32476c0
commit 3e47fa538f

View file

@ -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 <f> get videoHeight