repo: janusweb
action: commit
revision: 
path_from: 
revision_from: b574c4d7ea0f7dbcffd978749b163d1ab24cff1e:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit b574c4d7ea0f7dbcffd978749b163d1ab24cff1e
Author: James Baicoianu 
Date:   Fri Jun 12 15:32:28 2020 -0700

    Don't try to stop video if it doesn't exist

diff --git a/scripts/object.js b/scripts/object.js
index ab689c285cd0de723ead6fcc61fd2551a31305bf..
index ..59ac5b6acaf53c4822c0981add7194034d431210 100644
--- a/scripts/object.js
+++ b/scripts/object.js
@@ -1004,7 +1004,7 @@ elation.require(['janusweb.janusbase', 'janusweb.websurface'], function() {
         var texture = elation.engine.assets.find('image', this.image_id);
         //console.log('stop the image!', texture);
       }
-      if (this.video_id) {
+      if (this.video_id && this.video) {
         //var texture = elation.engine.assets.find('video', this.video_id);
         //texture.image.pause();
         //console.log('stop the video!', texture);

-----END OF PAGE-----