diff options
author | Valerio Virgillito | 2012-06-01 00:54:02 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-06-01 00:54:02 -0700 |
commit | 7fcb10270f9e19415f8452c261c2d0c86916a29a (patch) | |
tree | 67c039a42a7ac0eb0b4b6f7e18ab8339a8d00baa /js/controllers | |
parent | 6079ceedb5b340c78ecd02f27dfa734eedccf512 (diff) | |
download | ninja-7fcb10270f9e19415f8452c261c2d0c86916a29a.tar.gz |
fixed the 3d grid when switching documents and some cleanup
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/controllers')
-rwxr-xr-x | js/controllers/document-controller.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js index 0fe1636a..a90375af 100755 --- a/js/controllers/document-controller.js +++ b/js/controllers/document-controller.js | |||
@@ -348,26 +348,5 @@ exports.DocumentController = Montage.create(Component, { | |||
348 | value: function(document) { | 348 | value: function(document) { |
349 | document.closeDocument(this.application.ninja, this.application.ninja.closeFile); | 349 | document.closeDocument(this.application.ninja, this.application.ninja.closeFile); |
350 | } | 350 | } |
351 | }, | ||
352 | |||
353 | switchDocuments: { | ||
354 | value: function(currentDocument, newDocument, didCreate) { | ||
355 | |||
356 | if(currentDocument.currentView === "design") { | ||
357 | currentDocument.serializeDocument(); | ||
358 | } | ||
359 | |||
360 | if(didCreate) { | ||
361 | if(newDocument.currentView === "design") { | ||
362 | |||
363 | } else { | ||
364 | newDocument.model.parentContainer.style["display"] = "block"; | ||
365 | } | ||
366 | } else { | ||
367 | if(newDocument.currentView === "design") { | ||
368 | newDocument.deserializeDocument(); | ||
369 | } | ||
370 | } | ||
371 | } | ||
372 | } | 351 | } |
373 | }); | 352 | }); |