aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Timeline')
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
index ba745c82..1df37636 100644
--- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
+++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
@@ -1658,20 +1658,6 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
1658 targetIndex = 0; 1658 targetIndex = 0;
1659 // One or more elements have been added to the stage. 1659 // One or more elements have been added to the stage.
1660 // We need to add them to the timeline. 1660 // We need to add them to the timeline.
1661 // But where?
1662 // If there are no layers, we can just leave targetIndex at 0.
1663 if (this.arrLayers.length !== 0) {
1664 // If nothing is selected, we can leave
1665 var firstInsertedElement;
1666 if (typeof(event.detail.length) === "undefined") {
1667 firstInsertedElement = event.detail;
1668 } else {
1669 firstInsertedElement = event.detail[0];
1670 }
1671
1672
1673 }
1674
1675 if (typeof(event.detail.length) === "undefined") { 1661 if (typeof(event.detail.length) === "undefined") {
1676 // This is a standard element creation event. 1662 // This is a standard element creation event.
1677 this.createStageElementsAt(false, [event.detail]); 1663 this.createStageElementsAt(false, [event.detail]);