diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-08-27 18:17:14 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-08-27 18:32:32 -0400 |
| commit | ee110d4725943bbc2b783323ec5087324531ca33 (patch) | |
| tree | 5217c8116a2ac916f6143263337c9da46b8c6505 /public/assets/javascripts/rectangles/engine/shapes/shapelist.js | |
| parent | ebb9226fd5d37e8033e87e41b8ac0355d68f954c (diff) | |
get rooms api working with shapes
Diffstat (limited to 'public/assets/javascripts/rectangles/engine/shapes/shapelist.js')
| -rw-r--r-- | public/assets/javascripts/rectangles/engine/shapes/shapelist.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/public/assets/javascripts/rectangles/engine/shapes/shapelist.js b/public/assets/javascripts/rectangles/engine/shapes/shapelist.js index 2d33af2..21beb76 100644 --- a/public/assets/javascripts/rectangles/engine/shapes/shapelist.js +++ b/public/assets/javascripts/rectangles/engine/shapes/shapelist.js @@ -1,5 +1,11 @@ // The ShapeList manages the list of polylines which form a V2 layout. +if (! ('window' in this) ) { + var Fiber = require("../../../vendor/bower_components/fiber/src/fiber.js") + var Polyline = require("./polyline.js") + var OrthoPolyline = require("./ortho.js") +} + var ShapeList = Fiber.extend(function(base){ var exports = {} exports.init = function(){ @@ -110,4 +116,9 @@ var ShapeList = Fiber.extend(function(base){ }) } return exports -})
\ No newline at end of file +}) + +if (! ('window' in this) ) { + shapes = new ShapeList + module.exports = shapes +} |
