-- 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: 5c4afa437d967f4bf5c7bc3cb33752f488c42fed:
path_to:
revision_to:

git.thebackupbox.net

janusweb

git://git.thebackupbox.net/janusweb

commit 5c4afa437d967f4bf5c7bc3cb33752f488c42fed
Author: James Baicoianu <james_github@baicoianu.com>
Date:   Sun Nov 1 22:14:54 2020 -0800

    Throw start and stop events for all objects

diff --git a/scripts/janusbase.js b/scripts/janusbase.js

index 5adc9940c917a8345b884b7f0f5fe0964176e498..

index ..2364d814f448cda27c08975a5a19ee5024c16c40 100644

--- a/scripts/janusbase.js
+++ b/scripts/janusbase.js
@@ -699,6 +699,7 @@ elation.require(['engine.things.generic', 'utils.template', 'janusweb.parts'], f
           this.children[k].start();
         }
       }
+      this.dispatchEvent({type: 'start', bubbles: false});
     }
     this.stop = function() {
       for (var k in this.children) {
@@ -709,6 +710,7 @@ elation.require(['engine.things.generic', 'utils.template', 'janusweb.parts'], f
       if (this.started) {
         elation.events.remove(this.room, 'janusweb_script_frame_end', this.handleFrameUpdates);
         this.started = false;
+        this.dispatchEvent({type: 'stop', bubbles: false});
       }
     }
     this.pushFrameUpdate = function(key, value) {

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

-- Response ended

-- Page fetched on Sun Jun 2 14:57:57 2024