repo: janusweb
action: commit
revision: 
path_from: 
revision_from: e88ef7ce6d321688ba130859d6cbddac5e7d4162:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit e88ef7ce6d321688ba130859d6cbddac5e7d4162
Author: James Baicoianu 
Date:   Mon Apr 11 02:16:10 2016 -0700

    Fire event when portal is clicked

diff --git a/scripts/portal.js b/scripts/portal.js
index 145d90043f2688e4bbd01503c28cf1d5ebcf3f98..
index ..d9a1b55c831cea897e005126b99a2449cec4b856 100644
--- a/scripts/portal.js
+++ b/scripts/portal.js
@@ -152,6 +152,7 @@ elation.require(['engine.things.portal'], function() {
         this.frame.material.emissive.setHex(0x662222);
         this.properties.janus.setActiveRoom(this.properties.url, [0,0,0]);
         setTimeout(elation.bind(this, function() { this.frame.material.emissive.setHex(0x222222); }), 250);
+        elation.events.fire({element: this, type: 'janusweb_portal_click'});
       }
     }
   }, elation.engine.things.portal);

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