diff options
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 da8cbb76..d166467c 100755 --- a/js/mediators/element-mediator.js +++ b/js/mediators/element-mediator.js | |||
@@ -522,9 +522,9 @@ exports.ElementMediator = Montage.create(Component, { | |||
522 | length = layersDraggedArray.length; | 522 | length = layersDraggedArray.length; |
523 | 523 | ||
524 | for(var i=0; documentRoot.children[i]; i++) { | 524 | for(var i=0; documentRoot.children[i]; i++) { |
525 | if(documentRoot.children[i] === layerDroppedAfter.layerData.elementsList[0]) { | 525 | if(documentRoot.children[i] === layerDroppedAfter.layerData.stageElement) { |
526 | if(length >0){ | 526 | if(length >0){ |
527 | documentRoot.children[i].parentNode.insertBefore(layersDraggedArray[length-1].layerData.elementsList[0], documentRoot.children[i]); | 527 | documentRoot.children[i].parentNode.insertBefore(layersDraggedArray[length-1].layerData.stageElement, documentRoot.children[i]); |
528 | } | 528 | } |
529 | 529 | ||
530 | /* Will require for Multiple Drag n Drop */ | 530 | /* Will require for Multiple Drag n Drop */ |