From 8fe92b94ce5e1e2857d088752d94e19db7e3d8a8 Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Sun, 17 Jun 2012 22:31:44 -0700 Subject: montage v11 merge into ninja Signed-off-by: Valerio Virgillito --- .../ui/input-checkbox.reel/input-checkbox.js | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 node_modules/montage/ui/input-checkbox.reel/input-checkbox.js (limited to 'node_modules/montage/ui/input-checkbox.reel/input-checkbox.js') diff --git a/node_modules/montage/ui/input-checkbox.reel/input-checkbox.js b/node_modules/montage/ui/input-checkbox.reel/input-checkbox.js new file mode 100644 index 00000000..47442dcf --- /dev/null +++ b/node_modules/montage/ui/input-checkbox.reel/input-checkbox.js @@ -0,0 +1,25 @@ +/* + This file contains proprietary software owned by Motorola Mobility, Inc.
+ No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
+ (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. +
*/ +/*global require,exports */ +var Montage = require("montage").Montage, + Component = require("ui/component").Component, + NativeInputCheckbox = require("ui/native/input-checkbox.reel").InputCheckbox; + +/** + * Input Checkbox + */ +exports.InputCheckbox = Montage.create(NativeInputCheckbox, { + + hasTemplate: {value: true}, + + didSetElement: { + value: function() { + NativeInputCheckbox.didSetElement.call(this); + this['class'] = (this['class'] || '') + ' montage-inputCheckbox'; + } + } + +}); \ No newline at end of file -- cgit v1.2.3