diff options
author | Jon Reid | 2012-02-08 10:37:05 -0800 |
---|---|---|
committer | Jon Reid | 2012-02-08 10:37:05 -0800 |
commit | a15c1ef996a4d8cb65d91bf940563ee3dea3f5aa (patch) | |
tree | 1366f96a56eb977c2e25bb9bf507a3686b71084a /js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | |
parent | f15310815073203d72de97aa20dbfaa5707ca726 (diff) | |
download | ninja-a15c1ef996a4d8cb65d91bf940563ee3dea3f5aa.tar.gz |
Timeline: restore method incorrectly removed in last commit.
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js')
-rw-r--r-- | js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | 18 |
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() { |