aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorKruti Shah2012-04-25 13:22:14 -0700
committerKruti Shah2012-04-25 13:22:14 -0700
commit3fe0eb59a58db8812260fef57710326f8e660d7a (patch)
treeb571560e5362d987cceaa495c7772e72a67a1ecd /js
parent4a717f3abdad8f65cf8e61f7308f1f89aa825884 (diff)
downloadninja-3fe0eb59a58db8812260fef57710326f8e660d7a.tar.gz
Timeline Bug Fix : 1541
Signed-off-by: Kruti Shah <kruti.shah@motorola.com>
Diffstat (limited to 'js')
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
index 8c3b64eb..d782e96d 100644
--- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
+++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
@@ -829,6 +829,14 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
829 829
830 this.currentLayerNumber = this.currentLayerNumber + 1; 830 this.currentLayerNumber = this.currentLayerNumber + 1;
831 newLayerName = "Layer " + this.currentLayerNumber; 831 newLayerName = "Layer " + this.currentLayerNumber;
832
833 for(k = 0; k < arrLayersLength; k++){
834 if(this.arrLayers[k].layerData.layerName === newLayerName){
835 this.currentLayerNumber = this.currentLayerNumber + 1;
836 newLayerName = "Layer " + this.currentLayerNumber;
837 break;
838 }
839 }
832 thingToPush.layerData.layerName = newLayerName; 840 thingToPush.layerData.layerName = newLayerName;
833 thingToPush.layerData.layerTag = "<" + object.nodeName.toLowerCase() + ">"; 841 thingToPush.layerData.layerTag = "<" + object.nodeName.toLowerCase() + ">";
834 thingToPush.layerData.layerID = this.currentLayerNumber; 842 thingToPush.layerData.layerID = this.currentLayerNumber;