diff options
author | Benoit Marchant | 2012-03-17 17:41:47 -0700 |
---|---|---|
committer | François Frisch | 2012-03-17 17:41:47 -0700 |
commit | 28a7a71d2962158cab34f50627f2d22540c29eab (patch) | |
tree | dab3e0682ee3b55e74fda1f582e91d3f7937f7ef /node_modules/montage/lab/sandbox/ui/picasa-carousel-test/main.reel/main.js | |
parent | bcddcf118d4ce93e8a2519ed455c6e25a701ce74 (diff) | |
download | ninja-28a7a71d2962158cab34f50627f2d22540c29eab.tar.gz |
Added a new picasa-carousel component as well as an example using it
Diffstat (limited to 'node_modules/montage/lab/sandbox/ui/picasa-carousel-test/main.reel/main.js')
-rwxr-xr-x | node_modules/montage/lab/sandbox/ui/picasa-carousel-test/main.reel/main.js | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/node_modules/montage/lab/sandbox/ui/picasa-carousel-test/main.reel/main.js b/node_modules/montage/lab/sandbox/ui/picasa-carousel-test/main.reel/main.js new file mode 100755 index 00000000..3851d82b --- /dev/null +++ b/node_modules/montage/lab/sandbox/ui/picasa-carousel-test/main.reel/main.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 | var Montage = require("montage/core/core").Montage, | ||
7 | Component = require("montage/ui/component").Component; | ||
8 | |||
9 | |||
10 | exports.Main = Montage.create(Component, { | ||
11 | |||
12 | templateDidLoad: { | ||
13 | value: function() { | ||
14 | //console.log("main templateDidLoad") | ||
15 | } | ||
16 | }, | ||
17 | picasaCarousel: { | ||
18 | enumerable: false, | ||
19 | value: null | ||
20 | }, | ||
21 | prepareForDraw: { | ||
22 | enumerable: false, | ||
23 | value: function() { | ||
24 | this.searchForm.identifier = "searchForm"; | ||
25 | this.searchForm.addEventListener("submit", this, false); | ||
26 | } | ||
27 | }, | ||
28 | handleSearchFormSubmit: { | ||
29 | value: function(evt) { | ||
30 | evt.preventDefault(); | ||
31 | this.picasaCarousel.performSearch(); | ||
32 | } | ||
33 | }, | ||
34 | |||
35 | }); | ||