make superRemove a bound function
This commit is contained in:
parent
94a32476c0
commit
3e47fa538f
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue