diff options
Diffstat (limited to 'js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js')
-rw-r--r-- | js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js index 8dc19958..6b66bda9 100644 --- a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js +++ b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | |||
@@ -969,8 +969,8 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
969 | this.arrStyleTracks.push(restoredStyleTrack); | 969 | this.arrStyleTracks.push(restoredStyleTrack); |
970 | } | 970 | } |
971 | else if (layerEvent.layerEventType === "deleteStyle") { | 971 | else if (layerEvent.layerEventType === "deleteStyle") { |
972 | // TODO: Delete the right track. Index can be passed in event object, use that for splice(). | 972 | // We are deleting a style, so delete the associated track |
973 | this.arrStyleTracks.pop(); | 973 | this.arrStyleTracks.splice(layerEvent._event.selectedStyleIndex, 1); |
974 | } | 974 | } |
975 | } | 975 | } |
976 | }, | 976 | }, |