aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js.orig
diff options
context:
space:
mode:
authorKruti Shah2012-07-09 10:53:35 -0700
committerKruti Shah2012-07-09 10:53:35 -0700
commit8a2a9cf8d43a1ba7e40c41619e7db9675f4cb195 (patch)
tree93e10a0895677c545591ae698b4f7d0b2180d0c9 /js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js.orig
parent028e0a2ccde5458303d90a9dd6c4fde09b1b6565 (diff)
downloadninja-8a2a9cf8d43a1ba7e40c41619e7db9675f4cb195.tar.gz
Refactoring Code
Signed-off-by: Kruti Shah <kruti.shah@motorola.com>
Diffstat (limited to 'js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js.orig')
-rw-r--r--js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js.orig561
1 files changed, 0 insertions, 561 deletions
diff --git a/js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js.orig b/js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js.orig
deleted file mode 100644
index e2e52a3b..00000000
--- a/js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js.orig
+++ /dev/null
@@ -1,561 +0,0 @@
1/* <copyright>
2 This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3 No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
4 (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5 </copyright> */
6
7var Montage = require("montage/core/core").Montage;
8var Component = require("montage/ui/component").Component;
9
10var PropertyTrack = exports.PropertyTrack = Montage.create(Component, {
11
12 /* ===- Begin Models ==== */
13 hasTemplate:{
14 value: true
15 },
16
17<<<<<<< HEAD
18=======
19 trackEditorProperty:{
20 value:""
21 },
22
23 animatedElement:{
24 value:null
25 },
26
27 isSubproperty:{
28 value:true
29 },
30
31>>>>>>> refs/heads/TimelineUberJD
32 _propTweenRepetition:{
33 value:null
34 },
35 propTweenRepetition:{
36 get:function () {
37 return this._propTweenRepetition;
38 },
39 set:function (newVal) {
40 this._propTweenRepetition = newVal;
41 }
42 },
43
44 _propTweens:{
45 value:[]
46 },
47 propTweens:{
48 serializable:true,
49 get:function () {
50 return this._propTweens;
51 },
52 set:function (newVal) {
53 this._propTweens = newVal;
54 }
55 },
56
57 _propTrackData:{
58 value:false
59 },
60 propTrackData:{
61 serializable:true,
62 get:function () {
63 return this._propTrackData;
64 },
65 set:function (val) {
66 this._propTrackData = val;
67 if (this._propTrackData) {
68 this.setData();
69 }
70 }
71 },
72 _trackID:{
73 value:null
74 },
75 trackID:{
76 serializable:true,
77 get:function () {
78 return this._trackID;
79 },
80 set:function (value) {
81 if (value !== this._trackID) {
82 this._trackID = value;
83 }
84 }
85 },
86
87 _trackType:{
88 value:null
89 },
90 trackType:{
91 serializable:true,
92 get:function () {
93 return this._trackType;
94 },
95 set:function (value) {
96 if (value !== this._trackType) {
97 this._trackType = value;
98 }
99 }
100 },
101
102 _styleIndex:{
103 value:null
104 },
105 styleIndex:{
106 serializable:true,
107 get:function () {
108 return this._styleIndex;
109 },
110 set:function (value) {
111 if (value !== this._styleIndex) {
112 this._styleIndex = value;
113 }
114 }
115 },
116
117 trackEditorProperty:{
118 value:""
119 },
120
121 animatedElement:{
122 value:null
123 },
124
125 isSubproperty:{
126 value:true
127 },
128
129 nextKeyframe:{
130 value:1
131 },
132
133 ninjaStylesContoller:{
134 value:null
135 },
136
137 animationName:{
138 value:null
139 },
140
141 currentKeyframeRule:{
142 value:null
143 },
144
145 trackDuration:{
146 value:0
147 },
148
149 timelineTrack:{
150 value:null
151 },
152
153 setData:{
154 value:function () {
155 if (typeof(this.propTrackData) === "undefined") {
156 return;
157 }
158
159 this.styleIndex = this.propTrackData.styleIndex;
160 this.propTweens = this.propTrackData.propTweens;
161 this.trackType = this.propTrackData.trackType;
162 this.trackEditorProperty = this.propTrackData.trackEditorProperty;
163 this.currentKeyframeRule = this.propTrackData.existingRule;
164 this.needsDraw = true;
165 }
166 },
167 /* ===- End Models ==== */
168
169 /* ===- Begin Draw Cycle ==== */
170 prepareForDraw:{
171 value:function () {
172 this.element.addEventListener("click", this, false);
173 this.trackID = this.parentComponent.parentComponent.parentComponent.parentComponent.trackID;
174 this.animatedElement = this.parentComponent.parentComponent.parentComponent.parentComponent.animatedElement;
175 this.ninjaStylesContoller = this.application.ninja.stylesController;
176 }
177 },
178
179 didDraw:{
180 value:function () {
181 if (this.currentKeyframeRule) {
182 this.retrieveStoredStyleTweens();
183 }
184 }
185 },
186 /* ===- End Draw Cycle ==== */
187
188<<<<<<< HEAD
189 prepareForDraw:{
190 value:function(){
191 this.element.addEventListener("click", this, false);
192 this.timelineTrack = this.parentComponent.parentComponent.parentComponent.parentComponent;
193 this.trackID = this.timelineTrack.trackID;
194 this.animatedElement = this.timelineTrack.animatedElement;
195 this.ninjaStylesContoller = this.application.ninja.stylesController;
196 }
197 },
198
199 didDraw:{
200 value:function () {
201 if(this.currentKeyframeRule){
202 this.retrieveStoredStyleTweens();
203 }
204 }
205 },
206
207=======
208 /* ===- Begin Event Handlers ==== */
209>>>>>>> refs/heads/TimelineUberJD
210 handleClick:{
211 value:function (ev) {
212
213 var selectIndex , currentSelectedStyleIndex;
214 if (ev.shiftKey) {
215 if (this.trackType == "position") {