diff options
author | Nivesh Rajbhandari | 2012-06-13 10:03:53 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-06-13 10:03:53 -0700 |
commit | 1cfbfc91815b04dc2a5b090c5e05e300b9371eb7 (patch) | |
tree | 4cf6749de9fea6b90370e6f593146ae4a8690384 /js/document/document-html.js | |
parent | 509092ff335f74517a413cfb2deeb9d2de20f8e3 (diff) | |
parent | 5a7774f6769a7a682e21bafe0e57007668f16153 (diff) | |
download | ninja-1cfbfc91815b04dc2a5b090c5e05e300b9371eb7.tar.gz |
Merge branch 'refs/heads/ninja-internal' into PI_HotTextFixes
Diffstat (limited to 'js/document/document-html.js')
-rwxr-xr-x | js/document/document-html.js | 6 |
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 | //////////////////////////////////////////////////////////////////// |