aboutsummaryrefslogtreecommitdiff
path: root/js/panels
diff options
context:
space:
mode:
authorKruti Shah2012-04-12 11:21:48 -0700
committerKruti Shah2012-04-12 11:21:48 -0700
commit4c3a655e5c310579529d37ba828bb34217b6a26f (patch)
tree695846730969c99d6e985f4ea831a34a78adbc2d /js/panels
parentfdd6837c9cf61ca57657f0c4d35d6100c83e936e (diff)
downloadninja-4c3a655e5c310579529d37ba828bb34217b6a26f.tar.gz
Timeline : Replace Element Taken Care of
Signed-off-by: Kruti Shah <kruti.shah@motorola.com>
Diffstat (limited to 'js/panels')
-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");