diff options
author | Kruti Shah | 2012-02-29 12:30:12 -0800 |
---|---|---|
committer | Kruti Shah | 2012-02-29 12:30:12 -0800 |
commit | 8ccc989388bfbcb0d5713c44b9c97ef5ce45d31c (patch) | |
tree | 3d0b57bb4ad25fed015d06a6bfa265c27740b15b /js/panels/Timeline/TimelinePanel.reel | |
parent | ef071c537789196e411182aed153c2167c75be9a (diff) | |
download | ninja-8ccc989388bfbcb0d5713c44b9c97ef5ce45d31c.tar.gz |
Timeline: Changed the variables names to resolve issues.And removed the alert.
Signed-off-by: Kruti Shah <kruti.shah@motorola.com>
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel')
-rw-r--r-- | js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | 4 |
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; |