aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Timeline')
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
index 860868e5..395b2b76 100644
--- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
+++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
@@ -806,6 +806,24 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
806 806
807 } 807 }
808 }, 808 },
809
810 getLayerIndexByName : {
811 value: function(layerName) {
812 // Get the index in this.arrLayers that matches a particular layerName
813 // Returns false if no match
814 var i = 0,
815 returnVal = false,
816 arrLayersLength = this.arrLayers.length;
817
818 for (i=0; i < arrLayersLength; i++) {
819 if (this.arrLayers[i].layerName === layerName) {
820 returnVal = i;
821 }
822 }
823
824 return returnVal;
825 }
826 },
809 827
810 insertLayer: { 828 insertLayer: {
811 value: function() { 829 value: function() {