From 5914c5b2209c4b8daac4249bb76cda5c9314c4e6 Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Thu, 24 May 2012 00:07:23 -0700 Subject: Cleaning up referencing to 'documentRoot' and '_document' Moved to reference new model in DOM architecture rework. This should not affect anything, just moving the references, and also the setting to the render methods in the design view. --- js/mediators/element-mediator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/mediators') 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, { replaceElement: { value: function(newChild, oldChild, notify) { - this.application.ninja.currentDocument.documentRoot.replaceChild(newChild, oldChild); + this.application.ninja.currentDocument.model.documentRoot.replaceChild(newChild, oldChild); var undoLabel = "replace element"; @@ -520,7 +520,7 @@ exports.ElementMediator = Montage.create(Component, { value: function(layersDraggedArray, layerDroppedAfter) { var documentRoot,length; - documentRoot = this.application.ninja.currentDocument.documentRoot; + documentRoot = this.application.ninja.currentDocument.model.documentRoot; length = layersDraggedArray.length; for(var i=0; documentRoot.children[i]; i++) { -- cgit v1.2.3