aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
index 8d8b86c1..f9dc440f 100644
--- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
+++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
@@ -485,6 +485,7 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
485 "deleteLayer", 485 "deleteLayer",
486 "elementAdded", 486 "elementAdded",
487 "elementsRemoved", 487 "elementsRemoved",
488 "elementReplaced",
488 "selectionChange"], 489 "selectionChange"],
489 i, 490 i,
490 arrEventsLength = arrEvents.length; 491 arrEventsLength = arrEvents.length;
@@ -893,6 +894,14 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
893 } 894 }
894 }, 895 },
895 896
897 handleElementReplaced:{
898 value:function(event){
899 this.currentLayerSelected.layerData.elementsList.pop();
900 this.currentLayerSelected.layerData.elementsList.push(event.detail.data.newChild);
901 TimelineTrack.animatedElement = event.detail.data.newChild;
902 }
903 },
904
896 drawTimeMarkers:{ 905 drawTimeMarkers:{
897 value:function () { 906 value:function () {
898 this.timeMarkerHolder = document.createElement("div"); 907 this.timeMarkerHolder = document.createElement("div");