diff options
Diffstat (limited to 'js/mediators')
-rwxr-xr-x | js/mediators/element-mediator.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/mediators/element-mediator.js b/js/mediators/element-mediator.js index d62fa1f8..3182d5ec 100755 --- a/js/mediators/element-mediator.js +++ b/js/mediators/element-mediator.js | |||
@@ -132,6 +132,7 @@ exports.ElementMediator = Montage.create(NJComponent, { | |||
132 | value: function(el, el2) { | 132 | value: function(el, el2) { |
133 | el2.elementModel = el.elementModel; | 133 | el2.elementModel = el.elementModel; |
134 | this.application.ninja.currentDocument.documentRoot.replaceChild(el2, el); | 134 | this.application.ninja.currentDocument.documentRoot.replaceChild(el2, el); |
135 | el2.elementModel.isIn2DSnapCache = false; | ||
135 | } | 136 | } |
136 | }, | 137 | }, |
137 | 138 | ||
@@ -318,7 +319,7 @@ exports.ElementMediator = Montage.create(NJComponent, { | |||
318 | 319 | ||
319 | for(var i=0, item; item = els[i]; i++) { | 320 | for(var i=0, item; item = els[i]; i++) { |
320 | el = item._element || item; | 321 | el = item._element || item; |
321 | el.elementModel.controller["setProperty"](el, p, value[i]); | 322 | el.elementModel.controller["setProperty"](el, p, value[i], eventType, source); |
322 | } | 323 | } |
323 | 324 | ||
324 | NJevent("element" + eventType, {type : "setProperty", source: source, data: {"els": els, "prop": p, "value": value}, redraw: null}); | 325 | NJevent("element" + eventType, {type : "setProperty", source: source, data: {"els": els, "prop": p, "value": value}, redraw: null}); |