aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/Span.reel/Span.js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-02-28 13:33:31 -0800
committerJose Antonio Marquez2012-02-28 13:33:31 -0800
commit3a25881b3a463e4f695be2f663f141710ba1d1c1 (patch)
tree657d55ad394de168dd627cf89b875906d10584e2 /js/panels/Timeline/Span.reel/Span.js
parentd764428023d87446fbbb153d8e04a23b900d71d5 (diff)
parent7c9291a5bab4abd849547f8878f6fb962fc88250 (diff)
downloadninja-3a25881b3a463e4f695be2f663f141710ba1d1c1.tar.gz
Merge branch 'refs/heads/NinjaInternal' into Color
Diffstat (limited to 'js/panels/Timeline/Span.reel/Span.js')
-rw-r--r--js/panels/Timeline/Span.reel/Span.js17
1 files changed, 9 insertions, 8 deletions
diff --git a/js/panels/Timeline/Span.reel/Span.js b/js/panels/Timeline/Span.reel/Span.js
index f7bd4ff0..bfa6aab8 100644
--- a/js/panels/Timeline/Span.reel/Span.js
+++ b/js/panels/Timeline/Span.reel/Span.js
@@ -1,3 +1,9 @@
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
1var Montage = require("montage/core/core").Montage; 7var Montage = require("montage/core/core").Montage;
2var Component = require("montage/ui/component").Component; 8var Component = require("montage/ui/component").Component;
3 9
@@ -18,24 +24,19 @@ var Span = exports.Span = Montage.create(Component, {
18 }, 24 },
19 set:function (value) { 25 set:function (value) {
20 this._spanWidth = value; 26 this._spanWidth = value;
21 } 27 this.needsDraw = true;
22 },
23
24 prepareForDraw:{
25 value:function(){
26
27 } 28 }
28 }, 29 },
29 30
30 draw:{ 31 draw:{
31 value: function(){ 32 value: function(){
32 this.tweenspan.style.width = this.spanWidth + "px"; 33 this.element.style.width = this.spanWidth + "px";
33 } 34 }
34 }, 35 },
35 36
36 highlightSpan:{ 37 highlightSpan:{
37 value: function(){ 38 value: function(){
38 this.tweenspan.classList.add("spanHighlight"); 39 this.element.classList.add("spanHighlight");
39 } 40 }
40 } 41 }
41}); 42});