diff options
Diffstat (limited to 'js/document/document-text.js')
-rwxr-xr-x | js/document/document-text.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/js/document/document-text.js b/js/document/document-text.js index 533b32c9..09525f4e 100755 --- a/js/document/document-text.js +++ b/js/document/document-text.js | |||
@@ -53,8 +53,16 @@ exports.TextDocument = Montage.create(Component, { | |||
53 | 53 | ||
54 | callback.call(context, this); | 54 | callback.call(context, this); |
55 | } | 55 | } |
56 | } | 56 | }, |
57 | //////////////////////////////////////////////////////////////////// | 57 | //////////////////////////////////////////////////////////////////// |
58 | // | ||
59 | closeDocument: { | ||
60 | value: function (context, callback) { | ||
61 | var closed = this.model.close(null); | ||
62 | |||
63 | callback.call(context, this); | ||
64 | } | ||
65 | } | ||
58 | //////////////////////////////////////////////////////////////////// | 66 | //////////////////////////////////////////////////////////////////// |
59 | }); | 67 | }); |
60 | //////////////////////////////////////////////////////////////////////// | 68 | //////////////////////////////////////////////////////////////////////// |