aboutsummaryrefslogtreecommitdiff
path: root/js/mediators/element-mediator.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/mediators/element-mediator.js')
-rwxr-xr-xjs/mediators/element-mediator.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/mediators/element-mediator.js b/js/mediators/element-mediator.js
index 95aec2a3..6088aeab 100755
--- a/js/mediators/element-mediator.js
+++ b/js/mediators/element-mediator.js
@@ -101,7 +101,10 @@ exports.ElementMediator = Montage.create(NJComponent, {
101 { 101 {
102 el.elementModel.controller["set3DProperties"](el, [p3d], 0, true); 102 el.elementModel.controller["set3DProperties"](el, [p3d], 0, true);
103 } 103 }
104 if(!noEvent) NJevent("elementAdded", el); 104 if(!noEvent) {
105 this.application.ninja.documentController.activeDocument.markEdited();
106 NJevent("elementAdded", el);
107 }
105 } 108 }
106 }, 109 },
107 110
@@ -127,6 +130,7 @@ exports.ElementMediator = Montage.create(NJComponent, {
127 _removeElement: { 130 _removeElement: {
128 value: function(el, rules) { 131 value: function(el, rules) {
129 ElementController.removeElement(el, rules); 132 ElementController.removeElement(el, rules);
133 this.application.ninja.documentController.activeDocument.markEdited();
130 NJevent("elementDeleted", el); 134 NJevent("elementDeleted", el);
131 } 135 }
132 }, 136 },