aboutsummaryrefslogtreecommitdiff
path: root/js/components/layout/documents-tab.reel/documents-tab.html
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-29 00:34:40 -0700
committerValerio Virgillito2012-05-29 00:34:40 -0700
commit4c3aac5eabd93052b1554a03d78235215bb49db4 (patch)
treefe08f4f6d33d81d602f56daeaec845577fb9d8a5 /js/components/layout/documents-tab.reel/documents-tab.html
parent9a66ccad0235484643ef6d821315b11b5be4a93e (diff)
downloadninja-4c3aac5eabd93052b1554a03d78235215bb49db4.tar.gz
document bindings phase 1
- using array controller to bind the current document to all ninja components - removed open document event - removed references to the document controller Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/components/layout/documents-tab.reel/documents-tab.html')
-rwxr-xr-xjs/components/layout/documents-tab.reel/documents-tab.html13
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