aboutsummaryrefslogtreecommitdiff
path: root/js/stage
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/stage
parent2ef2ad33ff3f6ee1afd1e2a5c3189278f8fd46f4 (diff)
downloadninja-a7e3ef9f80d5e29515c9f8dd5374c89b9d2496de.tar.gz
use method to update dirtyFlag
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/stage')
-rwxr-xr-xjs/stage/stage-view.reel/stage-view.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/stage/stage-view.reel/stage-view.js b/js/stage/stage-view.reel/stage-view.js
index cd19f361..7ee41fb4 100755
--- a/js/stage/stage-view.reel/stage-view.js
+++ b/js/stage/stage-view.reel/stage-view.js
@@ -98,9 +98,9 @@ exports.StageView = Montage.create(Component, {
98 onChange: function(){ 98 onChange: function(){
99 var historySize = doc.editor.historySize(); 99 var historySize = doc.editor.historySize();
100 if(historySize.undo>0){ 100 if(historySize.undo>0){
101 doc.dirtyFlag=true; 101 doc.markDocumentEditted();
102 }else if(historySize.undo===0 && historySize.redo>0){ 102 }else if(historySize.undo===0 && historySize.redo>0){
103 doc.dirtyFlag=false; 103 doc.markDocumentUneditted();
104 } 104 }
105 }, 105 },
106 onCursorActivity: function() { 106 onCursorActivity: function() {