repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 19ac422b7b38b407ba38fd3d7094de43b0d5ef98:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 19ac422b7b38b407ba38fd3d7094de43b0d5ef98
Author: James Baicoianu 
Date:   Fri Jul 26 08:17:25 2019 -0700

    Throw 'create' event when object has been created

diff --git a/scripts/janusbase.js b/scripts/janusbase.js
index b5d44d2a73e751ca7d0f10d9f1f5e701cde9895b..
index ..ceacf46aeacc039d0a061f1f1352b3d660118b86 100644
--- a/scripts/janusbase.js
+++ b/scripts/janusbase.js
@@ -92,6 +92,7 @@ elation.require(['engine.things.generic', 'utils.template', 'janusweb.parts'], f
         this.setLayers(this.layers);
       }
       this.created = true;
+      this.dispatchEvent({type: 'create', bubbles: true});
     }
     this.updateColor = function() {
       if (this.properties.color === this.defaultcolor) {

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