aboutsummaryrefslogtreecommitdiff
path: root/js/io/document/document-controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/io/document/document-controller.js')
-rwxr-xr-xjs/io/document/document-controller.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/io/document/document-controller.js b/js/io/document/document-controller.js
index 9be40ccc..8ce43dcc 100755
--- a/js/io/document/document-controller.js
+++ b/js/io/document/document-controller.js
@@ -244,6 +244,9 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
244 244
245 switchViews: { 245 switchViews: {
246 value: function() { 246 value: function() {
247
248 //save file if dirty
249
247 this.application.ninja.stage.saveScroll(); 250 this.application.ninja.stage.saveScroll();
248 this._hideCurrentDocument(); 251 this._hideCurrentDocument();
249 252