diff options
Diffstat (limited to 'js/stage')
-rwxr-xr-x | js/stage/binding-view.reel/binding-view.html | 36 | ||||
-rwxr-xr-x | js/stage/binding-view.reel/binding-view.js | 10 |
2 files changed, 44 insertions, 2 deletions
diff --git a/js/stage/binding-view.reel/binding-view.html b/js/stage/binding-view.reel/binding-view.html index e3495542..43fa0112 100755 --- a/js/stage/binding-view.reel/binding-view.html +++ b/js/stage/binding-view.reel/binding-view.html | |||
@@ -14,10 +14,11 @@ | |||
14 | "owner": { | 14 | "owner": { |
15 | "prototype": "js/stage/binding-view.reel", | 15 | "prototype": "js/stage/binding-view.reel", |
16 | "properties": { | 16 | "properties": { |
17 | "element": {"#": "bindingView"} | 17 | "element": {"#": "bindingView"}, |
18 | "hudRepeater": {"@": "hudRepeater"} | ||
18 | } | 19 | } |
19 | }, | 20 | }, |
20 | "repeater": { | 21 | "hudRepeater": { |
21 | "prototype": "montage/ui/repetition.reel", | 22 | "prototype": "montage/ui/repetition.reel", |
22 | "properties": { | 23 | "properties": { |
23 | "element": {"#": "hudRepetition"} | 24 | "element": {"#": "hudRepetition"} |
@@ -35,6 +36,37 @@ | |||
35 | "properties": { | 36 | "properties": { |
36 | "element": {"#" : "hud"} | 37 | "element": {"#" : "hud"} |
37 | } | 38 | } |
39 | }, | ||
40 | "nonVisualRepeater": { | ||
41 | "prototype": "montage/ui/repetition.reel", | ||
42 | "properties": { | ||
43 | "element": {"#": "nonVisualRepeater"} | ||
44 | }, | ||
45 | "bindings": { | ||
46 | "objects": { | ||
47 | "boundObject": {"@": "owner"}, | ||
48 | "boundObjectPropertyPath": "nonVisualComponents", | ||
49 | "oneway": true | ||
50 | } | ||
51 | } | ||
52 | }, | ||
53 | "nonVisualComponent": { | ||
54 | "prototype": "js/stage/binding-view.reel/non-visual-component.reel", | ||
55 | "properties": { | ||
56 | "element": {"#": "nonVisualComponent"} | ||
57 | }, | ||
58 | "bindings": { | ||
59 | "objectName": { | ||
60 | "boundObject": {"@": "hudRepetition"}, | ||
61 | "boundObjectPropertyPath": "objectAtCurrentIteration.objectName", | ||
62 | "oneway": true | ||
63 | }, | ||
64 | "objectImage": { | ||
65 | "boundObject": {"@": "undoList"}, | ||
66 | "boundObjectPropertyPath": "objectAtCurrentIteration.objectImage", | ||
67 | "oneway": true | ||
68 | } | ||
69 | } | ||
38 | } | 70 | } |
39 | } | 71 | } |
40 | </script> | 72 | </script> |
diff --git a/js/stage/binding-view.reel/binding-view.js b/js/stage/binding-view.reel/binding-view.js index 4daa85b3..d3d988c1 100755 --- a/js/stage/binding-view.reel/binding-view.js +++ b/js/stage/binding-view.reel/binding-view.js | |||
@@ -22,5 +22,15 @@ exports.bindingView = Montage.create(Component, { | |||
22 | set: function(val) { | 22 | set: function(val) { |
23 | this._bindables = val; | 23 | this._bindables = val; |
24 | } | 24 | } |
25 | }, | ||
26 | |||
27 | |||
28 | nonVisualComponents: { | ||
29 | get: function() { | ||
30 | return this._bindables; | ||
31 | }, | ||
32 | set: function(val) { | ||
33 | this._bindables = val; | ||
34 | } | ||
25 | } | 35 | } |
26 | }); \ No newline at end of file | 36 | }); \ No newline at end of file |