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.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/mediators/element-mediator.js b/js/mediators/element-mediator.js
index 40e94cca..017ed20a 100755
--- a/js/mediators/element-mediator.js
+++ b/js/mediators/element-mediator.js
@@ -13,7 +13,6 @@ var ElementController = require("js/controllers/elements/element-controller").El
13 13
14exports.ElementMediator = Montage.create(Component, { 14exports.ElementMediator = Montage.create(Component, {
15 15
16
17 addDelegate: { 16 addDelegate: {
18 enumerable: false, 17 enumerable: false,
19 value: null 18 value: null
@@ -84,6 +83,7 @@ exports.ElementMediator = Montage.create(Component, {
84 value: function(newChild, oldChild, notify) { 83 value: function(newChild, oldChild, notify) {
85 84
86 this.application.ninja.currentDocument.model.documentRoot.replaceChild(newChild, oldChild); 85 this.application.ninja.currentDocument.model.documentRoot.replaceChild(newChild, oldChild);
86 if (newChild.getAttribute) newChild.setAttribute('data-ninja-node', 'true');
87 87
88 var undoLabel = "replace element"; 88 var undoLabel = "replace element";
89 89