aboutsummaryrefslogtreecommitdiff
path: root/js/mediators
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-06-14 16:12:59 -0700
committerJose Antonio Marquez2012-06-14 16:12:59 -0700
commit358192a29533b34fa4938d59825f29bfd8d02b14 (patch)
treeab21c8b472aaec4cc85d46207a12b606ea8cffa4 /js/mediators
parentaacfa86521c7d1c7159f1da1fad5bb2c638cc811 (diff)
parent5ee0c89fa0c7acc280ff3b884767e8513fd0b315 (diff)
downloadninja-358192a29533b34fa4938d59825f29bfd8d02b14.tar.gz
Merge branch 'refs/heads/Ninja-Internal' into FileIO
Diffstat (limited to 'js/mediators')
-rwxr-xr-xjs/mediators/element-mediator.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/mediators/element-mediator.js b/js/mediators/element-mediator.js
index 40e94cca..611cf214 100755
--- a/js/mediators/element-mediator.js
+++ b/js/mediators/element-mediator.js
@@ -84,6 +84,7 @@ exports.ElementMediator = Montage.create(Component, {
84 value: function(newChild, oldChild, notify) { 84 value: function(newChild, oldChild, notify) {
85 85
86 this.application.ninja.currentDocument.model.documentRoot.replaceChild(newChild, oldChild); 86 this.application.ninja.currentDocument.model.documentRoot.replaceChild(newChild, oldChild);
87 if (newChild.getAttribute) newChild.setAttribute('data-ninja-node', 'true');
87 88
88 var undoLabel = "replace element"; 89 var undoLabel = "replace element";
89 90