diff options
author | Armen Kesablyan | 2012-06-20 15:04:25 -0700 |
---|---|---|
committer | Armen Kesablyan | 2012-06-20 15:04:25 -0700 |
commit | fc818d31de267d2b77fda3b3029ad38d48698be8 (patch) | |
tree | 122ebf54d3378578c1ded4d786ba3940d4a911d2 /node_modules/montage/ui/input-date.reel/input-date.js | |
parent | 120e31dcf1e11eed11ee430d77c438e7b073e9f8 (diff) | |
parent | c9852665eadc1acb9c1c881d207c4bd9ef88805f (diff) | |
download | ninja-fc818d31de267d2b77fda3b3029ad38d48698be8.tar.gz |
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal
Diffstat (limited to 'node_modules/montage/ui/input-date.reel/input-date.js')
-rw-r--r-- | node_modules/montage/ui/input-date.reel/input-date.js | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/node_modules/montage/ui/input-date.reel/input-date.js b/node_modules/montage/ui/input-date.reel/input-date.js new file mode 100644 index 00000000..4d96cb74 --- /dev/null +++ b/node_modules/montage/ui/input-date.reel/input-date.js | |||
@@ -0,0 +1,35 @@ | |||
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 | /** | ||
8 | @module "montage/ui/input-date.reel" | ||
9 | @requires montage/ui/component | ||
10 | @requires montage/ui/text-input | ||
11 | */ | ||
12 | |||
13 | var Montage = require("montage").Montage, | ||
14 | Component = require("ui/component").Component, | ||
15 | NativeInputDate = require("ui/native/input-date.reel").InputDate; | ||
16 | |||
17 | /** | ||
18 | * Wraps the a <input type="date"> element with binding support for the element's standard attributes. | ||
19 | @class module:"montage/ui/input-date.reel".InputDate | ||
20 | @extends module:"montage/native/input-date.reel".NativeInputDate | ||
21 | */ | ||
22 | exports.InputDate = Montage.create(NativeInputDate, { | ||
23 | |||
24 | hasTemplate: { | ||
25 | value: true | ||
26 | }, | ||
27 | |||
28 | didSetElement: { | ||
29 | value: function() { | ||
30 | NativeInputDate.didSetElement.call(this); | ||
31 | this['class'] = (this['class'] || '') + ' ' + 'montage-inputDate montage-inputText'; | ||
32 | } | ||
33 | } | ||
34 | |||
35 | }); \ No newline at end of file | ||