From 56a0532ef7c154eb41d9924dd36aee9606b01f75 Mon Sep 17 00:00:00 2001 From: Jonathan Duran Date: Mon, 6 Feb 2012 14:10:45 -0800 Subject: Add back keyframe selection code Signed-off-by: Jonathan Duran --- .../Timeline/TimelinePanel.reel/TimelinePanel.js | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js index 1c44c89f..2db0c18a 100644 --- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js +++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js @@ -74,6 +74,20 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { } }, + _selectedKeyframes:{ + value:[] + }, + + selectedKeyframes:{ + serializable:true, + get:function () { + return this._selectedKeyframes; + }, + set:function (newVal) { + this._selectedKeyframes = newVal; + } + }, + /* === END: Models === */ @@ -153,6 +167,16 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { } }, + deselectKeyframes:{ + value:function () { + for (var i = 0; i < this.selectedKeyframes.length; i++) { + this.selectedKeyframes[i].deselect(); + } + this.selectedKeyframes = null; + this.selectedKeyframes = new Array(); + } + }, + handleAddLayerClick:{ value:function(event){ event.stopPropagation(); -- cgit v1.2.3