diff options
author | Jonathan Duran | 2012-02-06 14:10:45 -0800 |
---|---|---|
committer | Jonathan Duran | 2012-02-06 14:10:45 -0800 |
commit | 56a0532ef7c154eb41d9924dd36aee9606b01f75 (patch) | |
tree | 1f811d715549c024c7990157d90360ca8d2fd215 /js/panels/Timeline | |
parent | cf2f83be020d7d14f22177e0841472927d2fbcd7 (diff) | |
download | ninja-56a0532ef7c154eb41d9924dd36aee9606b01f75.tar.gz |
Add back keyframe selection code
Signed-off-by: Jonathan Duran <jduran@motorola.com>
Diffstat (limited to 'js/panels/Timeline')
-rw-r--r-- | js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | 24 |
1 files changed, 24 insertions, 0 deletions
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, { | |||
74 | } | 74 | } |
75 | }, | 75 | }, |
76 | 76 | ||
77 | _selectedKeyframes:{ | ||
78 | value:[] | ||
79 | }, | ||
80 | |||
81 | selectedKeyframes:{ | ||
82 | serializable:true, | ||
83 | get:function () { | ||
84 | return this._selectedKeyframes; | ||
85 | }, | ||
86 | set:function (newVal) { | ||
87 | this._selectedKeyframes = newVal; | ||
88 | } | ||
89 | }, | ||
90 | |||
77 | 91 | ||
78 | /* === END: Models === */ | 92 | /* === END: Models === */ |
79 | 93 | ||
@@ -153,6 +167,16 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { | |||
153 | } | 167 | } |
154 | }, | 168 | }, |
155 | 169 | ||
170 | deselectKeyframes:{ | ||
171 | value:function () { | ||
172 | for (var i = 0; i < this.selectedKeyframes.length; i++) { | ||
173 | this.selectedKeyframes[i].deselect(); | ||
174 | } | ||
175 | this.selectedKeyframes = null; | ||
176 | this.selectedKeyframes = new Array(); | ||
177 | } | ||
178 | }, | ||
179 | |||
156 | handleAddLayerClick:{ | 180 | handleAddLayerClick:{ |
157 | value:function(event){ | 181 | value:function(event){ |
158 | event.stopPropagation(); | 182 | event.stopPropagation(); |