aboutsummaryrefslogtreecommitdiff
path: root/js/components/ui/radio-button.reel/radio-button.js
diff options
context:
space:
mode:
authorPierre Frisch2011-12-22 07:25:50 -0800
committerValerio Virgillito2012-01-27 11:18:17 -0800
commitb89a7ee8b956c96a1dcee995ea840feddc5d4b27 (patch)
tree0f3136ab0ecdbbbed6a83576581af0a53124d6f1 /js/components/ui/radio-button.reel/radio-button.js
parent2401f05d1f4b94d45e4568b81fc73e67b969d980 (diff)
downloadninja-b89a7ee8b956c96a1dcee995ea840feddc5d4b27.tar.gz
First commit of Ninja to ninja-internal
Signed-off-by: Valerio Virgillito <rmwh84@motorola.com>
Diffstat (limited to 'js/components/ui/radio-button.reel/radio-button.js')
-rw-r--r--js/components/ui/radio-button.reel/radio-button.js44
1 files changed, 44 insertions, 0 deletions
diff --git a/js/components/ui/radio-button.reel/radio-button.js b/js/components/ui/radio-button.reel/radio-button.js
new file mode 100644
index 00000000..a356fefe
--- /dev/null
+++ b/js/components/ui/radio-button.reel/radio-button.js
@@ -0,0 +1,44 @@
1/* <copyright>
2This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3No 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
7var Montage = require("montage/core/core").Montage;
8var Component = require("montage/ui/component").Component;
9
10exports.RadioButton = Montage.create(Component, {
11
12 data: { value: null },
13
14 _selected: { value: null },
15
16 selected: {
17 get: function() { return this._selected; },
18 set: function(value) {
19 this._selected = value;
20 this.needsDraw = true;
21 }
22 },
23
24 prepareForDraw: {
25 enumerable: false,
26 value: function() {
27 this.element.addEventListener("click", this, false);
28 }
29 },
30
31 draw: {
32 enumerable: false,
33 value: function() {
34
35 }
36 },
37
38 handleClick: {
39 value: function(event) {
40
41 }
42 }
43
44});