aboutsummaryrefslogtreecommitdiff
path: root/js/controllers/document-controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/controllers/document-controller.js')
-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});