aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
diff options
context:
space:
mode:
authorJonathan Duran2012-02-08 10:40:11 -0800
committerJonathan Duran2012-02-08 10:40:11 -0800
commita460855c2132bffc666582659520e575d687d0cd (patch)
tree350db2035ae35f8ea20ce94f2e251eb7131f3437 /js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
parent479cd367696ae5bf02c774e2be75234aad05bce7 (diff)
parenta15c1ef996a4d8cb65d91bf940563ee3dea3f5aa (diff)
downloadninja-a460855c2132bffc666582659520e575d687d0cd.tar.gz
Merge branch 'refs/heads/Timeline-jreid' into Timeline
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js')
-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 c93e66d0..8f7c63bf 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() {