From 6307b0930f1a8452de954ae16e293da2f575db04 Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Thu, 31 May 2012 14:49:41 -0700 Subject: removing the last closeDocument handler Signed-off-by: Valerio Virgillito --- js/helper-classes/3D/draw-utils.js | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'js/helper-classes/3D') diff --git a/js/helper-classes/3D/draw-utils.js b/js/helper-classes/3D/draw-utils.js index c98ad8bc..a793b643 100755 --- a/js/helper-classes/3D/draw-utils.js +++ b/js/helper-classes/3D/draw-utils.js @@ -112,7 +112,6 @@ var DrawUtils = exports.DrawUtils = Montage.create(Component, { this.eventManager.addEventListener("elementsRemoved", this, false); this.eventManager.addEventListener("elementChange", this, false); this.eventManager.addEventListener("elementChanging", this, false); - this.eventManager.addEventListener("closeDocument", this, false); this.eventManager.addEventListener("elementReplaced", this, false); } }, @@ -164,15 +163,6 @@ var DrawUtils = exports.DrawUtils = Montage.create(Component, { } }, - handleCloseDocument:{ - value: function() { - if(this.application.ninja.documentController._documents.length === 0){ - this._eltArray.length = 0; - this._planesArray.length = 0; - } - } - }, - handleElementAdded: { value: function(event) { var elements = event.detail; -- cgit v1.2.3