diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-08-25 12:15:14 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-08-25 12:52:08 -0400 |
| commit | a9bf197a6e8f91cc91d772238168d9be1beb3c4d (patch) | |
| tree | bfa86ee643077770b15d5752f1c2d7fa51f79bd8 /public/assets/javascripts/rectangles/engine/shapes/shapelist.js | |
| parent | 48fc9b27a77126da649959c8f74ad8faffcd6e2c (diff) | |
makin sure tests work
Diffstat (limited to 'public/assets/javascripts/rectangles/engine/shapes/shapelist.js')
| -rw-r--r-- | public/assets/javascripts/rectangles/engine/shapes/shapelist.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/public/assets/javascripts/rectangles/engine/shapes/shapelist.js b/public/assets/javascripts/rectangles/engine/shapes/shapelist.js index 90714c2..9cbf165 100644 --- a/public/assets/javascripts/rectangles/engine/shapes/shapelist.js +++ b/public/assets/javascripts/rectangles/engine/shapes/shapelist.js @@ -85,8 +85,13 @@ var ShapeList = Fiber.extend(function(base){ data && data.forEach(function(points){ var line = new Polyline() line.deserialize(points) - line.build() + shapes.add(line) }.bind(this)) } + exports.build = function(){ + this.shapes.forEach(function(shape){ + shape.build() + }) + } return exports })
\ No newline at end of file |
