diff options
author | Valerio Virgillito | 2012-02-09 13:35:15 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-09 13:35:15 -0800 |
commit | cebd27bd649d01c8b8713651df3878da14b5e9a8 (patch) | |
tree | 3d20d838f2f6892a07cf16c4c959e234f96ee60b /js/panels/Timeline/Span.reel/Span.js | |
parent | 666ae3e9119410cbf7fa974274d95336aaff091c (diff) | |
parent | 2092acf520e3f346f15e42c76c2f616e7d094c97 (diff) | |
download | ninja-cebd27bd649d01c8b8713651df3878da14b5e9a8.tar.gz |
Merge branch 'Timeline' of https://github.com/imix23ways/ninja-internal into feature-branch
Conflicts:
js/helper-classes/RDGE/Materials/FlatMaterial.js
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/panels/Timeline/Span.reel/Span.js')
-rw-r--r-- | js/panels/Timeline/Span.reel/Span.js | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/js/panels/Timeline/Span.reel/Span.js b/js/panels/Timeline/Span.reel/Span.js new file mode 100644 index 00000000..f7bd4ff0 --- /dev/null +++ b/js/panels/Timeline/Span.reel/Span.js | |||
@@ -0,0 +1,41 @@ | |||
1 | var Montage = require("montage/core/core").Montage; | ||
2 | var Component = require("montage/ui/component").Component; | ||
3 | |||
4 | var Span = exports.Span = Montage.create(Component, { | ||
5 | |||
6 | hasTemplate:{ | ||
7 | value: true | ||
8 | }, | ||
9 | |||
10 | _spanWidth:{ | ||
11 | value:0 | ||
12 | }, | ||
13 | |||
14 | spanWidth:{ | ||
15 | serializable:true, | ||
16 | get:function () { | ||
17 | return this._spanWidth; | ||
18 | }, | ||
19 | set:function (value) { | ||
20 | this._spanWidth = value; | ||
21 | } | ||
22 | }, | ||
23 | |||
24 | prepareForDraw:{ | ||
25 | value:function(){ | ||
26 | |||
27 | } | ||
28 | }, | ||
29 | |||
30 | draw:{ | ||
31 | value: function(){ | ||
32 | this.tweenspan.style.width = this.spanWidth + "px"; | ||
33 | } | ||
34 | }, | ||
35 | |||
36 | highlightSpan:{ | ||
37 | value: function(){ | ||
38 | this.tweenspan.classList.add("spanHighlight"); | ||
39 | } | ||
40 | } | ||
41 | }); | ||