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/ortho.js | |
| parent | ebb9226fd5d37e8033e87e41b8ac0355d68f954c (diff) | |
get rooms api working with shapes
Diffstat (limited to 'public/assets/javascripts/rectangles/engine/shapes/ortho.js')
| -rw-r--r-- | public/assets/javascripts/rectangles/engine/shapes/ortho.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/public/assets/javascripts/rectangles/engine/shapes/ortho.js b/public/assets/javascripts/rectangles/engine/shapes/ortho.js index c1acae5..163f646 100644 --- a/public/assets/javascripts/rectangles/engine/shapes/ortho.js +++ b/public/assets/javascripts/rectangles/engine/shapes/ortho.js @@ -1,5 +1,9 @@ // An OrthoPolyline is a Polyline where all angles are 90 degrees. +if (! ('window' in this) ) { + var Polyline = require("./polyline.js") +} + var OrthoPolyline = Polyline.extend(function(base){ var exports = {} exports.type = function(){ @@ -55,3 +59,8 @@ var OrthoPolyline = Polyline.extend(function(base){ } return exports }) + + +if (! ('window' in this) ) { + module.exports = OrthoPolyline +} |
