diff options
author | hwc487 | 2012-06-14 13:12:07 -0700 |
---|---|---|
committer | hwc487 | 2012-06-14 13:12:07 -0700 |
commit | bcd7ce86e2fb71ebc1420ea5967770ce70d9faa2 (patch) | |
tree | 8e98b8faad2f50ba5d6ce1d5796a8c5fa8e3edda | |
parent | 13e2155e043990170a05f57bf7aad63d23120ecf (diff) | |
parent | 06679a2c21c6c749c8b3ea1a74431f6833726062 (diff) | |
download | ninja-bcd7ce86e2fb71ebc1420ea5967770ce70d9faa2.tar.gz |
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into Textures
-rwxr-xr-x | js/mediators/element-mediator.js | 1 |
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 | ||