aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline
diff options
context:
space:
mode:
authorJonathan Duran2012-02-06 14:10:45 -0800
committerJonathan Duran2012-02-06 14:10:45 -0800
commit56a0532ef7c154eb41d9924dd36aee9606b01f75 (patch)
tree1f811d715549c024c7990157d90360ca8d2fd215 /js/panels/Timeline
parentcf2f83be020d7d14f22177e0841472927d2fbcd7 (diff)
downloadninja-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.js24
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();