diff options
author | hwc487 | 2012-06-04 10:21:24 -0700 |
---|---|---|
committer | hwc487 | 2012-06-04 10:21:24 -0700 |
commit | 468b20e7fbc27882f8a37c83afd86d1d06c52afd (patch) | |
tree | 6c2a9c26429c4852961bdabba8f3dad45499be85 /js/components/layout/documents-tab.reel | |
parent | 3f5351c5d75080727953caf5d8d9a312c1c9391b (diff) | |
parent | c1ec69879028220b0c3f11ad6e24035bf527802c (diff) | |
download | ninja-468b20e7fbc27882f8a37c83afd86d1d06c52afd.tar.gz |
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into Textures
Diffstat (limited to 'js/components/layout/documents-tab.reel')
-rwxr-xr-x | js/components/layout/documents-tab.reel/documents-tab.html | 13 | ||||
-rwxr-xr-x | js/components/layout/documents-tab.reel/documents-tab.js | 33 |
2 files changed, 7 insertions, 39 deletions
diff --git a/js/components/layout/documents-tab.reel/documents-tab.html b/js/components/layout/documents-tab.reel/documents-tab.html index 304c8871..04b2bd7b 100755 --- a/js/components/layout/documents-tab.reel/documents-tab.html +++ b/js/components/layout/documents-tab.reel/documents-tab.html | |||
@@ -28,22 +28,19 @@ | |||
28 | "bindings": { | 28 | "bindings": { |
29 | "document": {"<-": "@repetition1.objectAtCurrentIteration"}, | 29 | "document": {"<-": "@repetition1.objectAtCurrentIteration"}, |
30 | "name": {"<-": "@repetition1.objectAtCurrentIteration.model.file.name"}, | 30 | "name": {"<-": "@repetition1.objectAtCurrentIteration.model.file.name"}, |
31 | "saveFlag": {"<-": "@repetition1.objectAtCurrentIteration.model.needsSave"}, | 31 | "saveFlag": {"<-": "@repetition1.objectAtCurrentIteration.model.needsSave"} |
32 | "active": {"<-": "@repetition1.objectAtCurrentIteration.model.isActive"} | ||
33 | } | 32 | } |
34 | }, | 33 | }, |
35 | 34 | ||
36 | "repetition1": { | 35 | "repetition1": { |
37 | "prototype": "montage/ui/repetition.reel", | 36 | "prototype": "montage/ui/repetition.reel", |
38 | "properties": { | 37 | "properties": { |
39 | "element": {"#": "openDocuments"} | 38 | "element": {"#": "openDocuments"}, |
39 | "isSelectionEnabled": true | ||
40 | }, | 40 | }, |
41 | "bindings": { | 41 | "bindings": { |
42 | "objects": { | 42 | |
43 | "boundObject": {"@": "owner"}, | 43 | "contentController": {"<-": "@owner.contentController"} |
44 | "boundObjectPropertyPath": "openDocuments", | ||
45 | "oneway": true | ||
46 | } | ||
47 | } | 44 | } |
48 | } | 45 | } |
49 | 46 | ||
diff --git a/js/components/layout/documents-tab.reel/documents-tab.js b/js/components/layout/documents-tab.reel/documents-tab.js index 982f6ecd..41c98b30 100755 --- a/js/components/layout/documents-tab.reel/documents-tab.js +++ b/js/components/layout/documents-tab.reel/documents-tab.js | |||
@@ -8,36 +8,7 @@ var Montage = require("montage/core/core").Montage; | |||
8 | var Component = require("montage/ui/component").Component; | 8 | var Component = require("montage/ui/component").Component; |
9 | 9 | ||
10 | exports.DocumentsTab = Montage.create(Component, { | 10 | exports.DocumentsTab = Montage.create(Component, { |
11 | 11 | contentController: { | |
12 | openDocuments: { | 12 | value: null |
13 | value: [] | ||
14 | }, | ||
15 | |||
16 | prepareForDraw: { | ||
17 | enumerable: false, | ||
18 | value: function() { | ||
19 | // console.log("Change this to be inside the Ninja Reel"); | ||
20 | this.openDocuments = this.application.ninja.documentController._documents; | ||
21 | // this.eventManager.addEventListener( "appLoaded", this, false); | ||
22 | } | ||
23 | }, | ||
24 | |||
25 | handleAppLoaded: { | ||
26 | value: function() { | ||
27 | // this.openDocuments = this.application.ninja.currentDocument; | ||
28 | } | ||
29 | }, | ||
30 | |||
31 | draw: { | ||
32 | enumerable: false, | ||
33 | value: function() { | ||
34 | |||
35 | } | ||
36 | }, | ||
37 | |||
38 | handleClick: { | ||
39 | value: function(event) { | ||
40 | |||
41 | } | ||
42 | } | 13 | } |
43 | }); \ No newline at end of file | 14 | }); \ No newline at end of file |