diff options
author | Valerio Virgillito | 2012-06-05 00:11:03 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-06-05 00:11:03 -0700 |
commit | f7e4257745ccd44b8d24555f0ef787429d6e472c (patch) | |
tree | 1965bbb794036a8d6184630c188a34f7a6d956e0 /node_modules/montage/ui/scroll-bars.reel | |
parent | c1ec69879028220b0c3f11ad6e24035bf527802c (diff) | |
download | ninja-f7e4257745ccd44b8d24555f0ef787429d6e472c.tar.gz |
adding the latest v0.10 montage
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'node_modules/montage/ui/scroll-bars.reel')
-rw-r--r-- | node_modules/montage/ui/scroll-bars.reel/scroll-bars.html | 1 | ||||
-rw-r--r-- | node_modules/montage/ui/scroll-bars.reel/scroll-bars.js | 61 |
2 files changed, 44 insertions, 18 deletions
diff --git a/node_modules/montage/ui/scroll-bars.reel/scroll-bars.html b/node_modules/montage/ui/scroll-bars.reel/scroll-bars.html index 81f097fa..4be1e1b6 100644 --- a/node_modules/montage/ui/scroll-bars.reel/scroll-bars.html +++ b/node_modules/montage/ui/scroll-bars.reel/scroll-bars.html | |||
@@ -10,7 +10,6 @@ | |||
10 | <script type="text/montage-serialization"> | 10 | <script type="text/montage-serialization"> |
11 | { | 11 | { |
12 | "owner": { | 12 | "owner": { |
13 | "prototype": "montage/ui/scroll-bars.reel", | ||
14 | "properties": { | 13 | "properties": { |
15 | "element": { | 14 | "element": { |
16 | "#": "montage-scroll-bars" | 15 | "#": "montage-scroll-bars" |
diff --git a/node_modules/montage/ui/scroll-bars.reel/scroll-bars.js b/node_modules/montage/ui/scroll-bars.reel/scroll-bars.js index 4db27941..4bf2bc04 100644 --- a/node_modules/montage/ui/scroll-bars.reel/scroll-bars.js +++ b/node_modules/montage/ui/scroll-bars.reel/scroll-bars.js | |||
@@ -12,22 +12,18 @@ var ScrollBars = exports.ScrollBars = Montage.create(Component, { | |||
12 | // Scroll and length are defined in a [0..1] range | 12 | // Scroll and length are defined in a [0..1] range |
13 | 13 | ||
14 | _verticalScroll: { | 14 | _verticalScroll: { |
15 | enumerable: false, | ||
16 | value: 0 | 15 | value: 0 |
17 | }, | 16 | }, |
18 | 17 | ||
19 | _horizontalScroll: { | 18 | _horizontalScroll: { |
20 | enumerable: false, | ||
21 | value: 0 | 19 | value: 0 |
22 | }, | 20 | }, |
23 | 21 | ||
24 | _verticalLength: { | 22 | _verticalLength: { |
25 | enumerable: false, | ||
26 | value: 0 | 23 | value: 0 |
27 | }, | 24 | }, |
28 | 25 | ||
29 | _horizontalLength: { | 26 | _horizontalLength: { |
30 | enumerable: false, | ||
31 | value: 0 | 27 | value: 0 |
32 | }, | 28 | }, |
33 | 29 | ||
@@ -38,7 +34,8 @@ var ScrollBars = exports.ScrollBars = Montage.create(Component, { | |||
38 | set: function (value) { | 34 | set: function (value) { |
39 | this._verticalScroll = value; | 35 | this._verticalScroll = value; |
40 | this.needsDraw = true; | 36 | this.needsDraw = true; |
41 | } | 37 | }, |
38 | serializable: true | ||
42 | }, | 39 | }, |
43 | 40 | ||
44 | horizontalScroll: { | 41 | horizontalScroll: { |
@@ -48,7 +45,8 @@ var ScrollBars = exports.ScrollBars = Montage.create(Component, { | |||
48 | set: function (value) { | 45 | set: function (value) { |
49 | this._horizontalScroll = value; | 46 | this._horizontalScroll = value; |
50 | this.needsDraw = true; | 47 | this.needsDraw = true; |
51 | } | 48 | }, |
49 | serializable: true | ||
52 | }, | 50 | }, |
53 | 51 | ||
54 | verticalLength: { | 52 | verticalLength: { |
@@ -58,7 +56,8 @@ var ScrollBars = exports.ScrollBars = Montage.create(Component, { | |||
58 | set: function (value) { | 56 | set: function (value) { |
59 | this._verticalLength = value; | 57 | this._verticalLength = value; |
60 | this.needsDraw = true; | 58 | this.needsDraw = true; |
61 | } | 59 | }, |
60 | serializable: true | ||
62 | }, | 61 | }, |
63 | 62 | ||
64 | horizontalLength: { | 63 | horizontalLength: { |
@@ -68,11 +67,11 @@ var ScrollBars = exports.ScrollBars = Montage.create(Component, { | |||
68 | set: function (value) { | 67 | set: function (value) { |
69 | this._horizontalLength = value; | 68 | this._horizontalLength = value; |
70 | this.needsDraw = true; | 69 | this.needsDraw = true; |
71 | } | 70 | }, |
71 | serializable: true | ||
72 | }, | 72 | }, |
73 | 73 | ||
74 | _opacity: { | 74 | _opacity: { |
75 | enumerable: false, | ||
76 | value: 0 | 75 | value: 0 |
77 | }, | 76 | }, |
78 | 77 | ||
@@ -83,16 +82,15 @@ var ScrollBars = exports.ScrollBars = Montage.create(Component, { | |||
83 | set: function (value) { | 82 | set: function (value) { |
84 | this._opacity = value; | 83 | this._opacity = value; |
85 | this.needsDraw = true; | 84 | this.needsDraw = true; |
86 | } | 85 | }, |
86 | serializable: true | ||
87 | }, | 87 | }, |
88 | 88 | ||
89 | _isDisplayUpdated: { | 89 | _isDisplayUpdated: { |
90 | enumerable: false, | ||
91 | value: false | 90 | value: false |
92 | }, | 91 | }, |
93 | 92 | ||
94 | _displayVertical: { | 93 | _displayVertical: { |
95 | enumerable: false, | ||
96 | value: false | 94 | value: false |
97 | }, | 95 | }, |
98 | 96 | ||
@@ -106,11 +104,11 @@ var ScrollBars = exports.ScrollBars = Montage.create(Component, { | |||
106 | this._isDisplayUpdated = true; | 104 | this._isDisplayUpdated = true; |
107 | this.needsDraw = true; | 105 | this.needsDraw = true; |
108 | } | 106 | } |
109 | } | 107 | }, |
108 | serializable: true | ||
110 | }, | 109 | }, |
111 | 110 | ||
112 | _displayHorizontal: { | 111 | _displayHorizontal: { |
113 | enumerable: false, | ||
114 | value: false | 112 | value: false |
115 | }, | 113 | }, |
116 | 114 | ||
@@ -124,16 +122,45 @@ var ScrollBars = exports.ScrollBars = Montage.create(Component, { | |||
124 | this._isDisplayUpdated = true; | 122 | this._isDisplayUpdated = true; |
125 | this.needsDraw = true; | 123 | this.needsDraw = true; |
126 | } | 124 | } |
127 | } | 125 | }, |
126 | serializable: true | ||
127 | }, | ||
128 | |||
129 | _top: { | ||
130 | value: false, | ||
131 | serializable: true | ||
132 | }, | ||
133 | |||
134 | _bottomClip: { | ||
135 | value: false, | ||
136 | serializable: true | ||
137 | }, | ||
138 | |||
139 | _bottom: { | ||
140 | value: false, | ||
141 | serializable: true | ||
142 | }, | ||
143 | |||
144 | _left: { | ||
145 | value: false, | ||
146 | serializable: true | ||
147 | }, | ||
148 | |||
149 | _rightClip: { | ||
150 | value: false, | ||
151 | serializable: true | ||
152 | }, | ||
153 | |||
154 | _right: { | ||
155 | value: false, | ||
156 | serializable: true | ||
128 | }, | 157 | }, |
129 | 158 | ||
130 | _hasResizedHorizontal: { | 159 | _hasResizedHorizontal: { |
131 | enumerable: false, | ||
132 | value: false | 160 | value: false |
133 | }, | 161 | }, |
134 | 162 | ||
135 | _hasResizedVertical: { | 163 | _hasResizedVertical: { |
136 | enumerable: false, | ||
137 | value: false | 164 | value: false |
138 | }, | 165 | }, |
139 | 166 | ||