From 623916fe0961c6a2baeb3038224c22575050186d Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 2 May 2014 13:25:44 -0400 Subject: starting refactor --- assets/javascripts/rectangles/models/room.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'assets/javascripts/rectangles/models/room.js') diff --git a/assets/javascripts/rectangles/models/room.js b/assets/javascripts/rectangles/models/room.js index 3636284..4c5643a 100644 --- a/assets/javascripts/rectangles/models/room.js +++ b/assets/javascripts/rectangles/models/room.js @@ -4,7 +4,7 @@ var FRONT = 0x1, BACK = 0x2, LEFT = 0x4, RIGHT = 0x8, FLOOR = 0x10, CEILING = 0x window.Room = (function(){ var Room = function(opt){ - this.id = opt.id || clipper.rooms.length + this.id = opt.id || Rooms.list.length this.rect = opt.rect this.regions = [] this.walls = [] -- cgit v1.2.3-70-g09d2