repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 8c2db99c74ebc762e7e2c49993f516b30b1e7d2c:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 8c2db99c74ebc762e7e2c49993f516b30b1e7d2c
Author: bioid 
Date:   Thu Mar 31 06:35:23 2016 +0000

    add room_active and room_disable global events

diff --git a/scripts/room.js b/scripts/room.js
index 9e811b034d3b16980482b29247aef06a5abac865..
index ..ac1cfa5ae37661a0e75ce557fa00ebfb572176e6 100644
--- a/scripts/room.js
+++ b/scripts/room.js
@@ -34,6 +34,7 @@ elation.require([
       this.setFog();
       this.setNearFar();
       this.setPlayerPosition();
+      elation.events.fire({type: 'room_active', data: this});
     }
     this.setPlayerPosition = function(pos, orientation) {
       if (!pos) {
@@ -536,6 +537,7 @@ elation.require([
           n.stop();
         }
       });
+      elation.events.fire({type: 'room_disable', data: this});
     }
     this.setTitle = function(title) {
       if (!title) title = 'Untitled Page';

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