aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/3D/draw-utils.js
diff options
context:
space:
mode:
authorAnanya Sen2012-03-08 13:54:11 -0800
committerAnanya Sen2012-03-08 13:54:11 -0800
commit28e3a3cc8b4a2e37c29db2fa01c61c17d24de07a (patch)
tree69b7e7bb38d7424ef40fe654e12dccbb618aa90e /js/helper-classes/3D/draw-utils.js
parent250420d8c6154172b27fe53aff30e78c227e8a67 (diff)
downloadninja-28e3a3cc8b4a2e37c29db2fa01c61c17d24de07a.tar.gz
null the arrays on all documents closed, so that they get garbage collected
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/helper-classes/3D/draw-utils.js')
-rwxr-xr-xjs/helper-classes/3D/draw-utils.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/helper-classes/3D/draw-utils.js b/js/helper-classes/3D/draw-utils.js
index 63e7799a..59da411f 100755
--- a/js/helper-classes/3D/draw-utils.js
+++ b/js/helper-classes/3D/draw-utils.js
@@ -139,8 +139,8 @@ var DrawUtils = exports.DrawUtils = Montage.create(Component, {
139 handleCloseDocument:{ 139 handleCloseDocument:{
140 value: function() { 140 value: function() {
141 if(this.application.ninja.documentController._documents.length === 0){ 141 if(this.application.ninja.documentController._documents.length === 0){
142 this._eltArray = []; 142 this._eltArray = null;
143 this._planesArray = []; 143 this._planesArray = null;
144 } 144 }
145 } 145 }
146 }, 146 },