diff options
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 | }); |