aboutsummaryrefslogtreecommitdiff
path: root/js/document/document-html.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/document/document-html.js')
-rwxr-xr-xjs/document/document-html.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/js/document/document-html.js b/js/document/document-html.js
index 04565753..8874c34b 100755
--- a/js/document/document-html.js
+++ b/js/document/document-html.js
@@ -115,10 +115,8 @@ exports.HtmlDocument = Montage.create(Component, {
115 // 115 //
116 closeDocument: { 116 closeDocument: {
117 value: function (context, callback) { 117 value: function (context, callback) {
118 //Closing document and getting outcome 118 //Closing document (sending null to close all views)
119 var closed = this.model.close(null); 119 this.model.close(null, function () {if (callback) callback.call(context, this);}.bind(this));
120 //Making callback if specified
121 if (callback) callback.call(context, this);
122 } 120 }
123 }, 121 },
124 //////////////////////////////////////////////////////////////////// 122 ////////////////////////////////////////////////////////////////////