diff options
Diffstat (limited to 'js/io/document/document-controller.js')
-rwxr-xr-x | js/io/document/document-controller.js | 3 |
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 | ||