aboutsummaryrefslogtreecommitdiff
path: root/js/document/document-text.js
diff options
context:
space:
mode:
authorAnanya Sen2012-05-18 18:38:09 -0700
committerAnanya Sen2012-05-18 18:38:09 -0700
commit6f5ffa17c72dd0aef7a02e3496154514750143c2 (patch)
treed9a6e2b33ad6dcdd308869cfdf9014ae720d8fe6 /js/document/document-text.js
parentbddbcd15c165ac0731de204b023a1e60d71b5d79 (diff)
downloadninja-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-xjs/document/document-text.js10
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////////////////////////////////////////////////////////////////////////