summaryrefslogtreecommitdiff
path: root/assets/javascripts/rectangles/engine/builder.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/javascripts/rectangles/engine/builder.js')
-rw-r--r--assets/javascripts/rectangles/engine/builder.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/assets/javascripts/rectangles/engine/builder.js b/assets/javascripts/rectangles/engine/builder.js
index 42ef76b..4ccc649 100644
--- a/assets/javascripts/rectangles/engine/builder.js
+++ b/assets/javascripts/rectangles/engine/builder.js
@@ -15,6 +15,7 @@ var builder = new function(){
if (window.scene) {
clear()
build()
+ bind()
}
}
function build (){
@@ -35,6 +36,13 @@ var builder = new function(){
})
})
}
+
+ function bind (){
+ clipper.rooms.forEach(function(r){
+ r.bind()
+ })
+ }
+
function clear (){
els.forEach(function(el){
scene.remove(el)