diff options
author | Nivesh Rajbhandari | 2012-03-20 06:45:06 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-03-20 06:45:06 -0700 |
commit | e33b3ce6f7b6789cfe854d4a6a8bb5bd57b8ae37 (patch) | |
tree | 5156d68f3638f3d4cb081b1c5c4083fee0b6703f | |
parent | fff3c568e6884a867527390b9b77f45c63944aec (diff) | |
download | ninja-e33b3ce6f7b6789cfe854d4a6a8bb5bd57b8ae37.tar.gz |
Fixing error in drawUtils when closing document - should set _eltArray and _planesArray's length to 0 instead of setting the arrays to null.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
-rwxr-xr-x | js/helper-classes/3D/draw-utils.js | 4 |
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 1c00f7ea..d6334e6c 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 = null; | 142 | this._eltArray.length = 0; |
143 | this._planesArray = null; | 143 | this._planesArray.length = 0; |
144 | } | 144 | } |
145 | } | 145 | } |
146 | }, | 146 | }, |