diff options
author | Kris Kowal | 2012-07-06 11:53:10 -0700 |
---|---|---|
committer | Kris Kowal | 2012-07-06 15:01:48 -0700 |
commit | 04343eda8c2f870b0da55cfdc8003c99fe1cc4de (patch) | |
tree | 0a6048889b65bb16ff58822e55bc1346e9eb07bd /js/panels/Timeline/Style.reel/Style.js | |
parent | 648ee61ae84216d0236e0dbc211addc13b2cfa3a (diff) | |
download | ninja-04343eda8c2f870b0da55cfdc8003c99fe1cc4de.tar.gz |
Remove trailing spaces
Diffstat (limited to 'js/panels/Timeline/Style.reel/Style.js')
-rw-r--r-- | js/panels/Timeline/Style.reel/Style.js | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/js/panels/Timeline/Style.reel/Style.js b/js/panels/Timeline/Style.reel/Style.js index db4593a2..82c2d8ab 100644 --- a/js/panels/Timeline/Style.reel/Style.js +++ b/js/panels/Timeline/Style.reel/Style.js | |||
@@ -32,11 +32,11 @@ POSSIBILITY OF SUCH DAMAGE. | |||
32 | * Style component: Edits and manages a single style rule for a Layer in the Timeline. | 32 | * Style component: Edits and manages a single style rule for a Layer in the Timeline. |
33 | * Public Properties: | 33 | * Public Properties: |
34 | * editorProperty: The CSS property for the style. | 34 | * editorProperty: The CSS property for the style. |
35 | * editorValue: The value for the editorProperty. | 35 | * editorValue: The value for the editorProperty. |
36 | * whichView: Which view to show, the hintable view (where a new property can be typed in) | 36 | * whichView: Which view to show, the hintable view (where a new property can be typed in) |
37 | * or the propval view (where the property's value can be set with the tweener). | 37 | * or the propval view (where the property's value can be set with the tweener). |
38 | * Valid values are "hintable" and "propval", defaults to "hintable". | 38 | * Valid values are "hintable" and "propval", defaults to "hintable". |
39 | * | 39 | * |
40 | */ | 40 | */ |
41 | 41 | ||
42 | var Montage = require("montage/core/core").Montage; | 42 | var Montage = require("montage/core/core").Montage; |
@@ -89,7 +89,7 @@ var LayerStyle = exports.LayerStyle = Montage.create(Component, { | |||
89 | } | 89 | } |
90 | } | 90 | } |
91 | }, | 91 | }, |
92 | 92 | ||
93 | /* isActive: Whether or not the user is actively clicking within the style; used to communicate state with | 93 | /* isActive: Whether or not the user is actively clicking within the style; used to communicate state with |
94 | * parent Layer. | 94 | * parent Layer. |
95 | */ | 95 | */ |
@@ -104,7 +104,7 @@ var LayerStyle = exports.LayerStyle = Montage.create(Component, { | |||
104 | this._isActive = newVal; | 104 | this._isActive = newVal; |
105 | } | 105 | } |
106 | }, | 106 | }, |
107 | 107 | ||
108 | // Property for this editor | 108 | // Property for this editor |
109 | _editorProperty: { | 109 | _editorProperty: { |
110 | value: "" | 110 | value: "" |
@@ -119,7 +119,7 @@ var LayerStyle = exports.LayerStyle = Montage.create(Component, { | |||
119 | this.needsDraw = true; | 119 | this.needsDraw = true; |
120 | } | 120 | } |
121 | }, | 121 | }, |
122 | 122 | ||
123 | // Value for the property for this editor. | 123 | // Value for the property for this editor. |
124 | _editorValue: { | 124 | _editorValue: { |
125 | value: "" | 125 | value: "" |
@@ -134,8 +134,8 @@ var LayerStyle = exports.LayerStyle = Montage.create(Component, { | |||
134 | this.needsDraw = true; | 134 | this.needsDraw = true; |
135 | } | 135 | } |
136 | }, | 136 | }, |
137 | 137 | ||
138 | // The tweener used to change the value for this property. | 138 | // The tweener used to change the value for this property. |
139 | _ruleTweener: { | 139 | _ruleTweener: { |
140 | value: false | 140 | value: false |
141 | }, | 141 | }, |
@@ -149,7 +149,7 @@ var LayerStyle = exports.LayerStyle = Montage.create(Component, { | |||
149 | this.needsDraw = true; | 149 | this.needsDraw = true; |
150 | } | 150 | } |
151 | }, | 151 | }, |
152 | 152 | ||
153 | // The hintable we use to change the Property | 153 | // The hintable we use to change the Property |
154 | _myHintable: { | 154 | _myHintable: { |
155 | value: "" | 155 | value: "" |
@@ -174,12 +174,12 @@ var LayerStyle = exports.LayerStyle = Montage.create(Component, { | |||
174 | this._myHintableValue = newVal; | 174 | this._myHintableValue = newVal; |
175 | } | 175 | } |
176 | }, | 176 | }, |
177 | 177 | ||
178 | // swapViews: Is a view swap happening? | 178 | // swapViews: Is a view swap happening? |
179 | _swapViews : { | 179 | _swapViews : { |
180 | value: true | 180 | value: true |
181 | }, | 181 | }, |
182 | 182 | ||
183 | // whichView: which view should we show: hintable or propval | 183 | // whichView: which view should we show: hintable or propval |
184 | _whichView : { | 184 | _whichView : { |
185 | value: "hintable" | 185 | value: "hintable" |
@@ -201,7 +201,7 @@ var LayerStyle = exports.LayerStyle = Montage.create(Component, { | |||
201 | } | 201 | } |
202 | } | 202 | } |
203 | }, | 203 | }, |
204 | 204 | ||
205 | // styleID: the id for this style; | 205 | // styleID: the id for this style; |
206 | // Used to publish events | 206 | // Used to publish events |
207 | _styleID : { | 207 | _styleID : { |
@@ -259,9 +259,9 @@ var LayerStyle = exports.LayerStyle = Montage.create(Component, { | |||
259 | this.isActive = true; | 259 | this.isActive = true; |
260 | } | 260 | } |
261 | }, | 261 | }, |
262 | 262 | ||
263 | /* === END: Models === */ | 263 | /* === END: Models === */ |
264 | 264 | ||
265 | /* === BEGIN : Draw cycle === */ | 265 | /* === BEGIN : Draw cycle === */ |
266 | prepareForDraw: { | 266 | prepareForDraw: { |
267 | value: function() { | 267 | value: function() { |
@@ -270,7 +270,7 @@ var LayerStyle = exports.LayerStyle = Montage.create(Component, { | |||
270 | }, | 270 | }, |
271 | draw: { | 271 | draw: { |
272 | value: function() { | 272 | value: function() { |
273 | 273 | ||
274 | if (this._swapViews === true) { | 274 | if (this._swapViews === true) { |
275 | // Show the right thing | 275 | // Show the right thing |
276 | this._showView(); | 276 | this._showView(); |
@@ -293,16 +293,16 @@ var LayerStyle = exports.LayerStyle = Montage.create(Component, { | |||
293 | } | 293 | } |
294 | }, | 294 | }, |
295 | /* === END: Draw cycle === */ | 295 | /* === END: Draw cycle === */ |
296 | 296 | ||
297 | /* === BEGIN: controllers === */ | 297 | /* === BEGIN: controllers === */ |
298 | 298 | ||
299 | // handleStylePropertyDblClick: What happens when the user double-clicks on the style property | 299 | // handleStylePropertyDblClick: What happens when the user double-clicks on the style property |
300 | handleStylePropertyDblclick: { | 300 | handleStylePropertyDblclick: { |
301 | value: function(event) { | 301 | value: function(event) { |
302 | this.whichView = "hintable"; | 302 | this.whichView = "hintable"; |
303 | } | 303 | } |
304 | }, | 304 | }, |
305 | 305 | ||
306 | // handleHintableStop: What happens when the hintable issues its stop event | 306 | // handleHintableStop: What happens when the hintable issues its stop event |
307 | handleHintableStop: { | 307 | handleHintableStop: { |
308 | value: function(event) { | 308 | value: function(event) { |
@@ -312,14 +312,14 @@ var LayerStyle = exports.LayerStyle = Montage.create(Component, { | |||
312 | this.whichView = "propval"; | 312 | this.whichView = "propval"; |
313 | } | 313 | } |
314 | }, | 314 | }, |
315 | 315 | ||
316 | // Init: Initialize the component with some useful selectors and other defaults. | 316 | // Init: Initialize the component with some useful selectors and other defaults. |
317 | init : { | 317 | init : { |
318 | value: function() { | 318 | value: function() { |
319 | 319 | ||
320 | var arrHints = [], | 320 | var arrHints = [], |
321 | i = 0; | 321 | i = 0; |
322 | 322 | ||
323 | // Get the array of hints from _myTweenables: | 323 | // Get the array of hints from _myTweenables: |
324 | for (i = 0; i < this._myTweenables.length; i++) { | 324 | for (i = 0; i < this._myTweenables.length; i++) { |
325 | arrHints.push(this._myTweenables[i].property) | 325 | arrHints.push(this._myTweenables[i].property) |
@@ -328,15 +328,15 @@ var LayerStyle = exports.LayerStyle = Montage.create(Component, { | |||
328 | // Set useful information for the hintable | 328 | // Set useful information for the hintable |
329 | this.myHintable.editingClass = "editable2"; | 329 | this.myHintable.editingClass = "editable2"; |
330 | this.myHintable.hints = arrHints; | 330 | this.myHintable.hints = arrHints; |
331 | 331 | ||
332 | // Bind a handler to the Hintable's change event | 332 | // Bind a handler to the Hintable's change event |
333 | this.myHintable.identifier = "hintable"; | 333 | this.myHintable.identifier = "hintable"; |
334 | this.myHintable.addEventListener("stop", this, false); | 334 | this.myHintable.addEventListener("stop", this, false); |
335 | 335 | ||
336 | // Add the click handler to the styleProperty: When the user double-clicks on it, we want to start the editor. | 336 | // Add the click handler to the styleProperty: When the user double-clicks on it, we want to start the editor. |
337 | this.styleProperty.identifier = "styleProperty"; | 337 | this.styleProperty.identifier = "styleProperty"; |
338 | this.styleProperty.addEventListener("dblclick", this, false); | 338 | this.styleProperty.addEventListener("dblclick", this, false); |
339 | 339 | ||
340 | // Get some selectors that we'll be using | 340 | // Get some selectors that we'll be using |
341 | this.editorHottextContainer = this.element.querySelector(".editor-hottext"); | 341 | this.editorHottextContainer = this.element.querySelector(".editor-hottext"); |
342 | this.editorInputContainer = this.element.querySelector(".editor-input"); | 342 | this.editorInputContainer = this.element.querySelector(".editor-input"); |
@@ -344,12 +344,12 @@ var LayerStyle = exports.LayerStyle = Montage.create(Component, { | |||
344 | this.containerHintable = this.element.querySelector(".row-hintable"); | 344 | this.containerHintable = this.element.querySelector(".row-hintable"); |
345 | this.containerPropvals = this.element.querySelector(".container-propvals"); | 345 | this.containerPropvals = this.element.querySelector(".container-propvals"); |
346 | this.valueEditorInput = this.element.querySelector(".editor-input input"); | 346 | this.valueEditorInput = this.element.querySelector(".editor-input input"); |
347 | 347 | ||
348 | // mousedown listener to handle | 348 | // mousedown listener to handle |
349 | this.element.addEventListener("mousedown", this, false); | 349 | this.element.addEventListener("mousedown", this, false); |
350 | } | 350 | } |
351 | }, | 351 | }, |
352 | 352 | ||
353 | // showView: Show the appropriate view | 353 | // showView: Show the appropriate view |
354 | _showView : { | 354 | _showView : { |
355 | value: function() { | 355 | value: function() { |
@@ -364,7 +364,7 @@ var LayerStyle = exports.LayerStyle = Montage.create(Component, { | |||
364 | } |