summaryrefslogtreecommitdiff
path: root/assets/javascripts/rectangles/models/wall.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2014-05-05 15:56:07 -0400
committerJules Laplace <jules@okfoc.us>2014-05-05 15:56:07 -0400
commit9f4204d35f1dbd861417cd8a04bb26c46299f55a (patch)
tree79a6f43198f38dba10de55d47c3995b83a29d263 /assets/javascripts/rectangles/models/wall.js
parent79b0e1b0a127260978c69165466953ae86f6d6b2 (diff)
happy with refactor
Diffstat (limited to 'assets/javascripts/rectangles/models/wall.js')
-rw-r--r--assets/javascripts/rectangles/models/wall.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/assets/javascripts/rectangles/models/wall.js b/assets/javascripts/rectangles/models/wall.js
index ae23125..a9c2fd6 100644
--- a/assets/javascripts/rectangles/models/wall.js
+++ b/assets/javascripts/rectangles/models/wall.js
@@ -1,6 +1,3 @@
-var painting_distance_from_wall = 8
-
-
window.Wall = (function(){
var Wall = function(opt){
@@ -23,6 +20,7 @@ window.Wall = (function(){
Wall.prototype.reset = function(){
}
+
Wall.prototype.destroy = function(){
this.mx.forEach(function(mx){
mx.destroy && mx.destroy()