aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/Style.reel
diff options
context:
space:
mode:
authorJonathan Duran2012-02-08 16:12:58 -0800
committerJonathan Duran2012-02-08 16:12:58 -0800
commita8c16ca440b8ded3b78b59c767539e8c080680e7 (patch)
treeb95c8cbbd67051d8a4600d9d957106f733feb52b /js/panels/Timeline/Style.reel
parent43dde98b9a2440097a6c237d5cec8a36bc64cbdf (diff)
downloadninja-a8c16ca440b8ded3b78b59c767539e8c080680e7.tar.gz
Squashed commit of the following:
commit 46292bddbfbe7415c6852142dd10fd02a276722a Author: Jon Reid <tjh487@motorola.com> Date: Wed Feb 8 14:32:22 2012 -0800 Timeline: turn off console logging. commit b8de88393182bc6e819c3d6a290ade2f804236ac Merge: e651344 37b952c Author: Jon Reid <tjh487@motorola.com> Date: Wed Feb 8 14:10:06 2012 -0800 Merge branch 'Timeline-jduran' into Timeline-jreid commit e651344d5d6c2911b31a54510c65a349c4d52db2 Author: Jon Reid <tjh487@motorola.com> Date: Wed Feb 8 14:08:25 2012 -0800 Timeline: Bug fixes IKNINJA-947: Weird behavior with adding layers with an empty layer name selected IKNINJA-990: Multiple styles can be highlighted at the same time even when they are under different layers IKNINJA-1063: Styles can be added while style column is collapsed IKNINJA-970: When there is no style added yet, the arrow sign should be in a collapsed mode Signed-off-by: Jonathan Duran <jduran@motorola.com>
Diffstat (limited to 'js/panels/Timeline/Style.reel')
-rw-r--r--js/panels/Timeline/Style.reel/Style.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/js/panels/Timeline/Style.reel/Style.js b/js/panels/Timeline/Style.reel/Style.js
index bf254795..e6e03901 100644
--- a/js/panels/Timeline/Style.reel/Style.js
+++ b/js/panels/Timeline/Style.reel/Style.js
@@ -36,6 +36,21 @@ var LayerStyle = exports.LayerStyle = Montage.create(Component, {
36 } 36 }
37 } 37 }
38 }, 38 },
39
40 /* isActive: Whether or not the user is actively clicking within the style; used to communicate state with
41 * parent Layer.
42 */
43 _isActive: {
44 value: false
45 },
46 isActive: {
47 get: function() {
48 return this._isActive;
49 },
50 set: function(newVal) {
51 this._isActive = newVal;
52 }
53 },
39 54
40 // Property for this editor 55 // Property for this editor
41 _editorProperty: { 56 _editorProperty: {
@@ -153,6 +168,12 @@ var LayerStyle = exports.LayerStyle = Montage.create(Component, {
153 this.needsDraw = true; 168 this.needsDraw = true;
154 } 169 }
155 }, 170 },
171
172 handleMousedown: {
173 value: function(event) {
174 this.isActive = true;
175 }
176 },
156 177
157 /* === END: Models === */ 178 /* === END: Models === */
158 179
@@ -238,6 +259,8 @@ var LayerStyle = exports.LayerStyle = Montage.create(Component, {
238 this.containerPropvals = this.element.querySelector(".container-propvals"); 259 this.containerPropvals = this.element.querySelector(".container-propvals");
239 this.valueEditorInput = this.element.querySelector(".editor-input input"); 260 this.valueEditorInput = this.element.querySelector(".editor-input input");
240 261
262 // mousedown listener to handle
263 this.element.addEventListener("mousedown", this, false);
241 } 264 }
242 }, 265 },
243 266