aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
authorAnanya Sen2012-02-17 11:26:02 -0800
committerAnanya Sen2012-02-17 11:26:02 -0800
commit3b862fe489a3320882f91ab56781fc5dc400c3d1 (patch)
treea3ae24b1427246801c2c6782c06637b40c6b8505 /js/controllers
parentf3b6a62f110be31a9438a6172694b111ffd4d507 (diff)
downloadninja-3b862fe489a3320882f91ab56781fc5dc400c3d1.tar.gz
changed the document dirtying logic to be done in the feature that edits the document.
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/controllers')
-rwxr-xr-xjs/controllers/document-controller.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js
index 6f31e24d..232af4c9 100755
--- a/js/controllers/document-controller.js
+++ b/js/controllers/document-controller.js
@@ -59,12 +59,6 @@ DocumentController = exports.DocumentController = Montage.create(Component, {
59 59
60 this.eventManager.addEventListener("recordStyleChanged", this, false); 60 this.eventManager.addEventListener("recordStyleChanged", this, false);
61 61
62 //event listener to detect a change in the html design view
63 this.eventManager.addEventListener("elementAdded", function(evt){self.markCurrentDocumentChanged()}, false);
64 this.eventManager.addEventListener("elementDeleted", function(evt){self.markCurrentDocumentChanged()}, false);
65 //todo: add all applicable event listeners
66 //end-event listener to detect a change in the html design view
67
68 } 62 }
69 }, 63 },
70 64
@@ -438,11 +432,5 @@ DocumentController = exports.DocumentController = Montage.create(Component, {
438 value: function() { 432 value: function() {
439 return "userDocument_" + (this._iframeCounter++); 433 return "userDocument_" + (this._iframeCounter++);
440 } 434 }
441 },
442
443 markCurrentDocumentChanged:{
444 value: function(){
445 this.activeDocument.dirtyFlag = true;
446 }
447 } 435 }
448}); 436});