aboutsummaryrefslogtreecommitdiff
path: root/js/components/layout/documents-tab.reel/documents-tab.js
diff options
context:
space:
mode:
authorPierre Frisch2011-12-22 07:25:50 -0800
committerValerio Virgillito2012-01-27 11:18:17 -0800
commitb89a7ee8b956c96a1dcee995ea840feddc5d4b27 (patch)
tree0f3136ab0ecdbbbed6a83576581af0a53124d6f1 /js/components/layout/documents-tab.reel/documents-tab.js
parent2401f05d1f4b94d45e4568b81fc73e67b969d980 (diff)
downloadninja-b89a7ee8b956c96a1dcee995ea840feddc5d4b27.tar.gz
First commit of Ninja to ninja-internal
Signed-off-by: Valerio Virgillito <rmwh84@motorola.com>
Diffstat (limited to 'js/components/layout/documents-tab.reel/documents-tab.js')
-rw-r--r--js/components/layout/documents-tab.reel/documents-tab.js45
1 files changed, 45 insertions, 0 deletions
diff --git a/js/components/layout/documents-tab.reel/documents-tab.js b/js/components/layout/documents-tab.reel/documents-tab.js
new file mode 100644
index 00000000..e874a73c
--- /dev/null
+++ b/js/components/layout/documents-tab.reel/documents-tab.js
@@ -0,0 +1,45 @@
1/* <copyright>
2This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3No 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
7var Montage = require("montage/core/core").Montage;
8var Component = require("montage/ui/component").Component;
9
10var documentManagerModule = require("js/io/document/document-controller");
11
12exports.DocumentsTab = Montage.create(Component, {
13
14 openDocuments: {
15 value: []
16 },
17
18 prepareForDraw: {
19 enumerable: false,
20 value: function() {
21// console.log("Change this to be inside the Ninja Reel");
22 this.openDocuments = documentManagerModule.DocumentController._documents;
23// this.eventManager.addEventListener( "appLoaded", this, false);
24 }
25 },
26
27 handleAppLoaded: {
28 value: function() {
29// this.openDocuments = this.application.ninja.currentDocument;
30 }
31 },
32
33 draw: {
34 enumerable: false,
35 value: function() {
36
37 }
38 },
39
40 handleClick: {
41 value: function(event) {
42
43 }
44 }
45}); \ No newline at end of file