summaryrefslogtreecommitdiff
path: root/public/assets/javascripts/rectangles/engine/shapes/shapelist.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-08-18 21:25:28 -0400
committerJules Laplace <jules@okfoc.us>2015-08-18 21:25:28 -0400
commitd9ecfddd7ba63d3cf94b29053476d1d11118d38e (patch)
tree55e759395068e4e21125e140d2a23f1833801ffb /public/assets/javascripts/rectangles/engine/shapes/shapelist.js
parent62a8127787c1ed2f0ae420722be9327e421633bd (diff)
saving blueprints
Diffstat (limited to 'public/assets/javascripts/rectangles/engine/shapes/shapelist.js')
-rw-r--r--public/assets/javascripts/rectangles/engine/shapes/shapelist.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/public/assets/javascripts/rectangles/engine/shapes/shapelist.js b/public/assets/javascripts/rectangles/engine/shapes/shapelist.js
index d8a03b2..1b8acfd 100644
--- a/public/assets/javascripts/rectangles/engine/shapes/shapelist.js
+++ b/public/assets/javascripts/rectangles/engine/shapes/shapelist.js
@@ -73,9 +73,10 @@ var ShapeList = Fiber.extend(function(base){
})
}
exports.deserialize = function(data){
- data.forEach(function(points){
- var line = new Polyline(points)
- this.add(line)
+ data && data.forEach(function(points){
+ var line = new Polyline()
+ line.deserialize(points)
+ line.build()
}.bind(this))
}
return exports