aboutsummaryrefslogtreecommitdiff
path: root/js/document
diff options
context:
space:
mode:
authorAnanya Sen2012-02-17 12:39:12 -0800
committerAnanya Sen2012-02-17 12:39:12 -0800
commita7e3ef9f80d5e29515c9f8dd5374c89b9d2496de (patch)
tree2591ad36881f60b6ba1acc4c2ca11672fd4531f0 /js/document
parent2ef2ad33ff3f6ee1afd1e2a5c3189278f8fd46f4 (diff)
downloadninja-a7e3ef9f80d5e29515c9f8dd5374c89b9d2496de.tar.gz
use method to update dirtyFlag
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/document')
-rwxr-xr-xjs/document/text-document.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/document/text-document.js b/js/document/text-document.js
index 6f8efaad..f74742ad 100755
--- a/js/document/text-document.js
+++ b/js/document/text-document.js
@@ -191,5 +191,17 @@ var TextDocument = exports.TextDocument = Montage.create(Montage, {
191 value: function() { 191 value: function() {
192 // Have the XHR here? 192 // Have the XHR here?
193 } 193 }
194 },
195
196 markDocumentEditted:{
197 value: function() {
198 this.dirtyFlag = true;
199 }
200 },
201
202 markDocumentUneditted:{
203 value: function() {
204 this.dirtyFlag = false;
205 }
194 } 206 }
195}); \ No newline at end of file 207}); \ No newline at end of file