From 091df138ebfe2871664a072ef7094d363ef1eedb Mon Sep 17 00:00:00 2001
From: Amanda Ghassaei <amandaghassaei@gmail.com>
Date: Tue, 3 Feb 2015 10:52:26 -0500
Subject: [PATCH] baseplane ref

---
 js/threeViews/Highlighter.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/js/threeViews/Highlighter.js b/js/threeViews/Highlighter.js
index de4cb980..bcd69d7b 100644
--- a/js/threeViews/Highlighter.js
+++ b/js/threeViews/Highlighter.js
@@ -107,13 +107,13 @@ Highlighter = Backbone.View.extend({
 
         if (shouldAdd){
             if (!this.isVisible()) return;
-            this.model.addCell(this.highlighter.getNextCellPosition());
+            this.model.addCell(this.getNextCellPosition());
         } else {
             var currentIntersectedCell = this._getCurrentIntersectedCell();
-            if (currentIntersectedCell === this.model.basePlane[0]) return;
+            if (currentIntersectedCell === this.model.get("basePlane").get("mesh")) return;
             this.model.removeCellFromMesh(currentIntersectedCell);
         }
-        this.highlighter.hide();
+        this.hide();
     }
 
 
-- 
GitLab