diff options
author | Valerio Virgillito | 2012-02-02 00:11:51 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-02 00:11:51 -0800 |
commit | 5a305ec44b2bd5198a248357439aae8ebbd75fee (patch) | |
tree | ec3b756beab7105841353ef79d4e8059b2b6a91c /node_modules/montage/ui/flow-path-linear.js | |
parent | dbe9c7705860fb3551321e23e7eab763f622241c (diff) | |
download | ninja-5a305ec44b2bd5198a248357439aae8ebbd75fee.tar.gz |
upgrading to Montage v0.6
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'node_modules/montage/ui/flow-path-linear.js')
-rw-r--r-- | node_modules/montage/ui/flow-path-linear.js | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/node_modules/montage/ui/flow-path-linear.js b/node_modules/montage/ui/flow-path-linear.js index fa23d10b..b95ddb92 100644 --- a/node_modules/montage/ui/flow-path-linear.js +++ b/node_modules/montage/ui/flow-path-linear.js | |||
@@ -1,18 +1,12 @@ | |||
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 | |||
7 | var Montage = require("montage").Montage; | 1 | var Montage = require("montage").Montage; |
8 | 2 | ||
9 | var FlowPathLinear = exports.FlowPathLinear = Montage.create(Montage, { | 3 | var FlowPathLinear = exports.FlowPathLinear = Montage.create(Montage, { |
10 | 4 | ||
11 | _variable: { | 5 | _variable: { |
12 | enumerable: false, | 6 | enumerable: false, |
13 | value: "time" | 7 | value: "time" |
14 | }, | 8 | }, |
15 | 9 | ||
16 | variable: { | 10 | variable: { |
17 | get: function () { | 11 | get: function () { |
18 | return this._variable; | 12 | return this._variable; |
@@ -29,12 +23,12 @@ var FlowPathLinear = exports.FlowPathLinear = Montage.create(Montage, { | |||
29 | this._updatePath(); | 23 | this._updatePath(); |
30 | } | 24 | } |
31 | }, | 25 | }, |
32 | 26 | ||
33 | _origin: { | 27 | _origin: { |
34 | enumerable: false, | 28 | enumerable: false, |
35 | value: 0 | 29 | value: 0 |
36 | }, | 30 | }, |
37 | 31 | ||
38 | origin: { | 32 | origin: { |
39 | get: function () { | 33 | get: function () { |
40 | return this._origin; | 34 | return this._origin; |
@@ -49,7 +43,7 @@ var FlowPathLinear = exports.FlowPathLinear = Montage.create(Montage, { | |||
49 | enumerable: false, | 43 | enumerable: false, |
50 | value: 1 | 44 | value: 1 |
51 | }, | 45 | }, |
52 | 46 | ||
53 | multiplier: { | 47 | multiplier: { |
54 | get: function () { | 48 | get: function () { |
55 | return this._multiplier; | 49 | return this._multiplier; |
@@ -59,12 +53,12 @@ var FlowPathLinear = exports.FlowPathLinear = Montage.create(Montage, { | |||
59 | this._updatePath(); | 53 | this._updatePath(); |
60 | } | 54 | } |
61 | }, | 55 | }, |
62 | 56 | ||
63 | _path: { | 57 | _path: { |
64 | enumerable: false, | 58 | enumerable: false, |
65 | value: "0" | 59 | value: "0" |
66 | }, | 60 | }, |
67 | 61 | ||
68 | path: { | 62 | path: { |
69 | get: function () { | 63 | get: function () { |
70 | return this._path; | 64 | return this._path; |
@@ -73,11 +67,11 @@ var FlowPathLinear = exports.FlowPathLinear = Montage.create(Montage, { | |||
73 | this._path = value; | 67 | this._path = value; |
74 | } | 68 | } |
75 | }, | 69 | }, |
76 | 70 | ||
77 | _updatePath: { | 71 | _updatePath: { |
78 | enumerable: false, | 72 | enumerable: false, |
79 | value: function () { | 73 | value: function () { |
80 | this.path = "slide."+this._variable+"*("+this._multiplier+")-("+this._origin+")"; | 74 | this.path = "slide."+this._variable+"*("+this._multiplier+")-("+this._origin+")"; |
81 | } | 75 | } |
82 | } | 76 | } |
83 | }); \ No newline at end of file | 77 | }); |