-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: janusweb
action: commit
revision:
path_from:
revision_from: e7359a963e50ceab17fe9de5211b9524cb205370:
path_to:
revision_to:

git.thebackupbox.net

janusweb

git://git.thebackupbox.net/janusweb

commit e7359a963e50ceab17fe9de5211b9524cb205370
Author: James Baicoianu <james_github@baicoianu.com>
Date:   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

index a836152ee18e8ebbda6560e27c46d4f3723f4c16..

index ..f320aaebbe69fee7e8e8539149d1a3ec55bc13d7 100644

--- 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-----

-- Response ended

-- Page fetched on Sun Jun 2 16:11:11 2024