diff options
author | Ananya Sen | 2012-05-18 18:38:09 -0700 |
---|---|---|
committer | Ananya Sen | 2012-05-18 18:38:09 -0700 |
commit | 6f5ffa17c72dd0aef7a02e3496154514750143c2 (patch) | |
tree | d9a6e2b33ad6dcdd308869cfdf9014ae720d8fe6 /js/document/document-text.js | |
parent | bddbcd15c165ac0731de204b023a1e60d71b5d79 (diff) | |
download | ninja-6f5ffa17c72dd0aef7a02e3496154514750143c2.tar.gz |
save for code view documents in the new dom architecture
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
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 | //////////////////////////////////////////////////////////////////////// |