diff options
author | Jose Antonio Marquez | 2012-06-14 16:13:20 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-06-14 16:13:20 -0700 |
commit | c72058c9e61f5c1e345482d0eb3741c669612e40 (patch) | |
tree | 284475902c0b7af56b15bab735c98074ef6210df /js/mediators | |
parent | 708d6d4736cdb67bde5ecfb31b34e19d26eef611 (diff) | |
parent | 5ee0c89fa0c7acc280ff3b884767e8513fd0b315 (diff) | |
download | ninja-c72058c9e61f5c1e345482d0eb3741c669612e40.tar.gz |
Merge branch 'refs/heads/Ninja-Internal' into Color
Diffstat (limited to 'js/mediators')
-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 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 | ||