diff options
author | Nivesh Rajbhandari | 2012-06-13 11:37:12 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-06-13 11:37:12 -0700 |
commit | f78a6977159bd0310235feb82df18a6ed9df2d7a (patch) | |
tree | 69691914af8a04ff890700e39638d497bbaf451b | |
parent | 5a7774f6769a7a682e21bafe0e57007668f16153 (diff) | |
download | ninja-f78a6977159bd0310235feb82df18a6ed9df2d7a.tar.gz |
IKNinja-1715 - GIO: canvas tag is not saved after switching WebGL option On/Off in the PI for the shape object.
We need to add the 'data-ninja'node' in replaceEelement as well.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
-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 | ||