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/anchor.reel/anchor.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/anchor.reel/anchor.js')
-rw-r--r-- | node_modules/montage/ui/anchor.reel/anchor.js | 80 |
1 files changed, 12 insertions, 68 deletions
diff --git a/node_modules/montage/ui/anchor.reel/anchor.js b/node_modules/montage/ui/anchor.reel/anchor.js index 2c12684b..62eefede 100644 --- a/node_modules/montage/ui/anchor.reel/anchor.js +++ b/node_modules/montage/ui/anchor.reel/anchor.js | |||
@@ -3,78 +3,22 @@ | |||
3 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<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. | 4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. |
5 | </copyright> */ | 5 | </copyright> */ |
6 | 6 | /*global require,exports */ | |
7 | /** | ||
8 | @module "montage/ui/anchor.reel" | ||
9 | @requires montage/core/core | ||
10 | @requires montage/ui/native-control | ||
11 | */ | ||
12 | var Montage = require("montage").Montage, | 7 | var Montage = require("montage").Montage, |
13 | Component = require("ui/component").Component, | 8 | Component = require("ui/component").Component, |
14 | NativeControl = require("ui/native-control").NativeControl; | 9 | NativeAnchor = require("ui/native/anchor.reel").Anchor; |
15 | /** | ||
16 | The Anchor component wraps a native <code><a></code> element and exposes its standard attributes as bindable properties. | ||
17 | @class module:"montage/ui/anchor.reel".Anchor | ||
18 | @extends module:montage/native-control.NativeControl | ||
19 | |||
20 | */ | ||
21 | var Anchor = exports.Anchor = Montage.create(NativeControl, { | ||
22 | |||
23 | // HTMLAnchorElement methods | ||
24 | |||
25 | blur: { value: function() { this._element.blur(); } }, | ||
26 | focus: { value: function() { this._element.focus(); } } | ||
27 | |||
28 | }); | ||
29 | |||
30 | Anchor.addAttributes( /** @lends module:"montage/ui/anchor.reel".Anchor# */ { | ||
31 | 10 | ||
32 | /** | 11 | /** |
33 | The text displayed by the link. | 12 | * Montage Anchor |
34 | @type string | 13 | */ |
35 | @default null | 14 | exports.Anchor = Montage.create(NativeAnchor, { |
36 | */ | ||
37 | textContent: null, | ||
38 | 15 | ||
39 | /** | 16 | hasTemplate: {value: false}, |
40 | The link target URL. | ||
41 | @type string | ||
42 | @default null | ||
43 | */ | ||
44 | href: null, | ||
45 | 17 | ||
46 | /** | 18 | didSetElement: { |
47 | The language of the linked resource. | 19 | value: function() { |
48 | @type string | 20 | NativeAnchor.didSetElement.call(this); |
49 | @default null | 21 | this['class'] = (this['class'] || '') + ' montage-anchor'; |
50 | */ | 22 | } |
51 | hreflang: null, | 23 | } |
52 | |||
53 | /** | ||
54 | The media type for which the target document was designed. | ||
55 | @type string | ||
56 | @default null | ||
57 | */ | ||
58 | media: null, | ||
59 | |||
60 | /** | ||
61 | Controls what kinds of links the elements create. | ||
62 | @type string | ||
63 | @default null | ||
64 | */ | ||
65 | rel: null, | ||
66 | |||
67 | /** | ||
68 | The target window the link will open in. | ||
69 | @type string | ||
70 | @default null | ||
71 | */ | ||
72 | target: null, | ||
73 | |||
74 | /** | ||
75 | The MIME type of the linked resource. | ||
76 | @type string | ||
77 | @default null | ||
78 | */ | ||
79 | type: null | ||
80 | }); | 24 | }); |