diff options
author | Valerio Virgillito | 2012-05-24 11:59:17 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-24 11:59:17 -0700 |
commit | 70ff8dd670bc37c14caf850e06791d1e293b1e4b (patch) | |
tree | 8e00a27c6c908dda3e816d1f5aaf0d2a889ca5dc /js/mediators | |
parent | a8eb5c65a21af3bf8d8b8eb3e65b494b8bd9bc01 (diff) | |
parent | a6db492176a85546047dae6d5ecb9cfc4325e043 (diff) | |
download | ninja-70ff8dd670bc37c14caf850e06791d1e293b1e4b.tar.gz |
Merge pull request #255 from joseeight/Document
Cleaning up referencing to documentRoot
Diffstat (limited to 'js/mediators')
-rwxr-xr-x | js/mediators/element-mediator.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/mediators/element-mediator.js b/js/mediators/element-mediator.js index 483dacbc..f71a6f4d 100755 --- a/js/mediators/element-mediator.js +++ b/js/mediators/element-mediator.js | |||
@@ -86,7 +86,7 @@ exports.ElementMediator = Montage.create(Component, { | |||
86 | replaceElement: { | 86 | replaceElement: { |
87 | value: function(newChild, oldChild, notify) { | 87 | value: function(newChild, oldChild, notify) { |
88 | 88 | ||
89 | this.application.ninja.currentDocument.documentRoot.replaceChild(newChild, oldChild); | 89 | this.application.ninja.currentDocument.model.documentRoot.replaceChild(newChild, oldChild); |
90 | 90 | ||
91 | var undoLabel = "replace element"; | 91 | var undoLabel = "replace element"; |
92 | 92 | ||
@@ -520,7 +520,7 @@ exports.ElementMediator = Montage.create(Component, { | |||
520 | value: function(layersDraggedArray, layerDroppedAfter) { | 520 | value: function(layersDraggedArray, layerDroppedAfter) { |
521 | var documentRoot,length; | 521 | var documentRoot,length; |
522 | 522 | ||
523 | documentRoot = this.application.ninja.currentDocument.documentRoot; | 523 | documentRoot = this.application.ninja.currentDocument.model.documentRoot; |
524 | length = layersDraggedArray.length; | 524 | length = layersDraggedArray.length; |
525 | 525 | ||
526 | for(var i=0; documentRoot.children[i]; i++) { | 526 | for(var i=0; documentRoot.children[i]; i++) { |