From 9f4204d35f1dbd861417cd8a04bb26c46299f55a Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 5 May 2014 15:56:07 -0400 Subject: happy with refactor --- assets/javascripts/rectangles/models/wall.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'assets/javascripts/rectangles/models/wall.js') 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() -- cgit v1.2.3-70-g09d2