diff options
author | Pierre Frisch | 2011-12-22 07:25:50 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-01-27 11:18:17 -0800 |
commit | b89a7ee8b956c96a1dcee995ea840feddc5d4b27 (patch) | |
tree | 0f3136ab0ecdbbbed6a83576581af0a53124d6f1 /node_modules/montage/ui/component-group.reel | |
parent | 2401f05d1f4b94d45e4568b81fc73e67b969d980 (diff) | |
download | ninja-b89a7ee8b956c96a1dcee995ea840feddc5d4b27.tar.gz |
First commit of Ninja to ninja-internal
Signed-off-by: Valerio Virgillito <rmwh84@motorola.com>
Diffstat (limited to 'node_modules/montage/ui/component-group.reel')
-rwxr-xr-x | node_modules/montage/ui/component-group.reel/component-group.js | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/node_modules/montage/ui/component-group.reel/component-group.js b/node_modules/montage/ui/component-group.reel/component-group.js new file mode 100755 index 00000000..e9daab5b --- /dev/null +++ b/node_modules/montage/ui/component-group.reel/component-group.js | |||
@@ -0,0 +1,33 @@ | |||
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 | // TODO: ComponentList instead? ComponentContainer? | ||
7 | /** | ||
8 | @module "montage/ui/component-group.reel" | ||
9 | @requires montage/core/core | ||
10 | @requires montage/ui/component | ||
11 | */ | ||
12 | var Montage = require("montage").Montage; | ||
13 | var Component = require("ui/component").Component; | ||
14 | |||
15 | /** | ||
16 | @class module:"montage/ui/component-group.reel".ComponentGroup | ||
17 | @extends module:montage/ui/component.Component | ||
18 | */ | ||
19 | var ComponentGroup = exports.ComponentGroup = Montage.create(Component, /** @lends module:"montage/ui/component-group.reel".ComponentGroup# */ { | ||
20 | |||
21 | hasTemplate: {value: false}, | ||
22 | |||
23 | /** | ||
24 | Initializes the ComponentGroup instance's <code>childComponents</code> array with the specified array of components. | ||
25 | @function | ||
26 | @param {Component} components Components to be initialized. | ||
27 | @returns itself | ||
28 | */ | ||
29 | initWithComponents: {value: function(components) { | ||
30 | this.childComponents = components; | ||
31 | return this; | ||
32 | }} | ||
33 | }); | ||