aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelinePanel.reel
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel')
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
index 81415951..e92c83db 100644
--- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
+++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
@@ -728,7 +728,7 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
728 if(this.currentLayerSelected.elementsList[0]!==undefined){ 728 if(this.currentLayerSelected.elementsList[0]!==undefined){
729 if(this.currentTrackSelected.isTrackAnimated){ 729 if(this.currentTrackSelected.isTrackAnimated){
730 this.application.ninja.stage.clearDrawingCanvas(); 730 this.application.ninja.stage.clearDrawingCanvas();
731 alert("cannot add elements to a layer with animated element");/* check how to clear the canvas*/ 731 console.log("cannot add elements to a layer with animated element");
732 return; 732 return;
733 }else{ 733 }else{
734 this.hashElementMapToLayer.setItem(event.detail.uuid, event.detail,this.currentLayerSelected); 734 this.hashElementMapToLayer.setItem(event.detail.uuid, event.detail,this.currentLayerSelected);
@@ -738,12 +738,12 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
738 this.hashElementMapToLayer.setItem(event.detail.uuid, event.detail,this.currentLayerSelected); 738 this.hashElementMapToLayer.setItem(event.detail.uuid, event.detail,this.currentLayerSelected);
739 this.currentLayerSelected.elementsList.push(event.detail); 739 this.currentLayerSelected.elementsList.push(event.detail);
740 } 740 }
741
742 } 741 }
743 }, 742 },
744 743
745 handleElementDeleted:{ 744 handleElementDeleted:{
746 value:function (event) { 745 value:function (event) {
746
747 var length; 747 var length;
748 this.deleteElement = event.detail; 748 this.deleteElement = event.detail;
749 length = this.currentLayerSelected.elementsList.length - 1; 749 length = this.currentLayerSelected.elementsList.length - 1;