diff options
author | Valerio Virgillito | 2012-06-04 10:20:57 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-06-04 10:20:57 -0700 |
commit | c1ec69879028220b0c3f11ad6e24035bf527802c (patch) | |
tree | 043bfe4ec9e08f4f598a4845ae5fbcddacc7c8fb /js/components/layout/documents-tab.reel/documents-tab.html | |
parent | 3abba04025dbc0daadb08184833a2558c442b8e1 (diff) | |
parent | 266460e52831c5b3a3473be420756fd88bb8aced (diff) | |
download | ninja-c1ec69879028220b0c3f11ad6e24035bf527802c.tar.gz |
Merge pull request #264 from mencio/document-bindings-fix
Document bindings fix - Changing the documents architecture to use bindings instead of events
Diffstat (limited to 'js/components/layout/documents-tab.reel/documents-tab.html')
-rwxr-xr-x | js/components/layout/documents-tab.reel/documents-tab.html | 13 |
1 files changed, 5 insertions, 8 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 | ||