From 4c3a655e5c310579529d37ba828bb34217b6a26f Mon Sep 17 00:00:00 2001 From: Kruti Shah Date: Thu, 12 Apr 2012 11:21:48 -0700 Subject: Timeline : Replace Element Taken Care of Signed-off-by: Kruti Shah --- js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'js') 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, { "deleteLayer", "elementAdded", "elementsRemoved", + "elementReplaced", "selectionChange"], i, arrEventsLength = arrEvents.length; @@ -893,6 +894,14 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { } }, + handleElementReplaced:{ + value:function(event){ + this.currentLayerSelected.layerData.elementsList.pop(); + this.currentLayerSelected.layerData.elementsList.push(event.detail.data.newChild); + TimelineTrack.animatedElement = event.detail.data.newChild; + } + }, + drawTimeMarkers:{ value:function () { this.timeMarkerHolder = document.createElement("div"); -- cgit v1.2.3