aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorhwc4872012-06-14 13:12:07 -0700
committerhwc4872012-06-14 13:12:07 -0700
commitbcd7ce86e2fb71ebc1420ea5967770ce70d9faa2 (patch)
tree8e98b8faad2f50ba5d6ce1d5796a8c5fa8e3edda /js
parent13e2155e043990170a05f57bf7aad63d23120ecf (diff)
parent06679a2c21c6c749c8b3ea1a74431f6833726062 (diff)
downloadninja-bcd7ce86e2fb71ebc1420ea5967770ce70d9faa2.tar.gz
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into Textures
Diffstat (limited to 'js')
-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 cf93d8b7..017ed20a 100755
--- a/js/mediators/element-mediator.js
+++ b/js/mediators/element-mediator.js
@@ -83,6 +83,7 @@ exports.ElementMediator = Montage.create(Component, {
83 value: function(newChild, oldChild, notify) { 83 value: function(newChild, oldChild, notify) {
84 84
85 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');
86 87
87 var undoLabel = "replace element"; 88 var undoLabel = "replace element";
88 89