diff options
author | hwc487 | 2012-02-07 14:42:51 -0800 |
---|---|---|
committer | hwc487 | 2012-02-07 14:42:51 -0800 |
commit | 6173fe8440152b1e4c63834a6b4dc7573d532339 (patch) | |
tree | d23449204ae7f23cb9bab09836d126e90c30484b /js/mediators/element-mediator.js | |
parent | 2d4da18a778471b02e188ad668752e331ee76127 (diff) | |
parent | aec849d91e4b697d496b9ede28b5d89cf2283781 (diff) | |
download | ninja-6173fe8440152b1e4c63834a6b4dc7573d532339.tar.gz |
Merge branch 'ToolFixes' of github.com:mqg734/ninja-internal into working
Conflicts:
js/helper-classes/RDGE/GLRectangle.js
js/helper-classes/RDGE/GLWorld.js
js/helper-classes/RDGE/MaterialsLibrary.js
Diffstat (limited to 'js/mediators/element-mediator.js')
-rw-r--r-- | js/mediators/element-mediator.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/js/mediators/element-mediator.js b/js/mediators/element-mediator.js index c44e1cb5..9aefbca6 100644 --- a/js/mediators/element-mediator.js +++ b/js/mediators/element-mediator.js | |||
@@ -112,6 +112,13 @@ exports.ElementMediator = Montage.create(NJComponent, { | |||
112 | } | 112 | } |
113 | }, | 113 | }, |
114 | 114 | ||
115 | replaceElement: { | ||
116 | value: function(el, el2) { | ||
117 | el2.elementModel = el.elementModel; | ||
118 | this.application.ninja.currentDocument.documentRoot.replaceChild(el2, el); | ||
119 | } | ||
120 | }, | ||
121 | |||
115 | getNJProperty: { | 122 | getNJProperty: { |
116 | value: function(el, p) { | 123 | value: function(el, p) { |
117 | if(el.elementModel) { | 124 | if(el.elementModel) { |