aboutsummaryrefslogtreecommitdiff
path: root/js/document/document-html.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-06-13 08:27:33 -0700
committerValerio Virgillito2012-06-13 08:27:33 -0700
commit5a7774f6769a7a682e21bafe0e57007668f16153 (patch)
tree1f3fdcd64c06335e62c71418333163ea0a57a417 /js/document/document-html.js
parent493485c1ebc4d4034e10b47c161035409e598fcf (diff)
parent5a46f92f3127f7cc7870f125e8da2b44c2891fd0 (diff)
downloadninja-5a7774f6769a7a682e21bafe0e57007668f16153.tar.gz
Merge pull request #291 from joseeight/TempPromptUI
Adding temp prompts
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 15f88d09..aded9241 100755
--- a/js/document/document-html.js
+++ b/js/document/document-html.js
@@ -121,10 +121,8 @@ exports.HtmlDocument = Montage.create(Component, {
121 // 121 //
122 closeDocument: { 122 closeDocument: {
123 value: function (context, callback) { 123 value: function (context, callback) {
124 //Closing document and getting outcome 124 //Closing document (sending null to close all views)
125 var closed = this.model.close(null); 125 this.model.close(null, function () {if (callback) callback.call(context, this);}.bind(this));
126 //Making callback if specified
127 if (callback) callback.call(context, this);
128 } 126 }
129 }, 127 },
130 //////////////////////////////////////////////////////////////////// 128 ////////////////////////////////////////////////////////////////////