aboutsummaryrefslogtreecommitdiff
path: root/js/mediators
diff options
context:
space:
mode:
Diffstat (limited to 'js/mediators')
-rwxr-xr-xjs/mediators/element-mediator.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/mediators/element-mediator.js b/js/mediators/element-mediator.js
index 40e94cca..897b2771 100755
--- a/js/mediators/element-mediator.js
+++ b/js/mediators/element-mediator.js
@@ -489,9 +489,9 @@ exports.ElementMediator = Montage.create(Component, {
489 length = layersDraggedArray.length; 489 length = layersDraggedArray.length;
490 490
491 for(var i=0; documentRoot.children[i]; i++) { 491 for(var i=0; documentRoot.children[i]; i++) {
492 if(documentRoot.children[i] === layerDroppedAfter.layerData.elementsList[0]) { 492 if(documentRoot.children[i] === layerDroppedAfter.layerData.stageElement) {
493 if(length >0){ 493 if(length >0){
494 documentRoot.children[i].parentNode.insertBefore(layersDraggedArray[length-1].layerData.elementsList[0], documentRoot.children[i]); 494 documentRoot.children[i].parentNode.insertBefore(layersDraggedArray[length-1].layerData.stageElement, documentRoot.children[i]);
495 } 495 }
496 496
497 /* Will require for Multiple Drag n Drop */ 497 /* Will require for Multiple Drag n Drop */