diff --git a/source/Ox.UI/js/Video/Ox.VideoElement.js b/source/Ox.UI/js/Video/Ox.VideoElement.js index 26e4775e..ae7954f7 100644 --- a/source/Ox.UI/js/Video/Ox.VideoElement.js +++ b/source/Ox.UI/js/Video/Ox.VideoElement.js @@ -176,8 +176,10 @@ Ox.VideoElement = function(options, self) { }, stop: function() { // custom event to be triggered on removal from the DOM - self.video.pause(); - self.video.src = ''; + if (self.video) { + self.video.pause(); + self.video.src = ''; + } that.triggerEvent('ended'); } })