repo: janusweb action: commit revision: path_from: revision_from: e7359a963e50ceab17fe9de5211b9524cb205370: path_to: revision_to:
commit e7359a963e50ceab17fe9de5211b9524cb205370 Author: James BaicoianuDate: Mon Jul 13 11:36:08 2020 -0700 Use this.getAsset() instead of global asset pack diff --git a/scripts/object.js b/scripts/object.js
--- a/scripts/object.js
+++ b/scripts/object.js
@@ -1017,11 +1017,11 @@ elation.require(['janusweb.janusbase', 'janusweb.websurface'], function() {
this.stop = function() {
elation.engine.things.janusobject.extendclass.stop.call(this);
if (this.image_id) {
- var texture = elation.engine.assets.find('image', this.image_id);
+ var texture = this.getAsset('image', this.image_id);
//console.log('stop the image!', texture);
}
if (this.video_id && this.video) {
- //var texture = elation.engine.assets.find('video', this.video_id);
+ //var texture = this.getAsset('video', this.video_id);
//texture.image.pause();
//console.log('stop the video!', texture);
this.pause();
-----END OF PAGE-----