From 95bef3bbd77c6c3bd01b5222986f2dd35a7218b4 Mon Sep 17 00:00:00 2001 From: Armen Kesablyan Date: Sat, 19 May 2012 14:48:35 -0700 Subject: Changes to binding view Signed-off-by: Armen Kesablyan --- js/stage/binding-view.reel/binding-view.html | 36 ++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) (limited to 'js/stage/binding-view.reel/binding-view.html') 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 @@ "owner": { "prototype": "js/stage/binding-view.reel", "properties": { - "element": {"#": "bindingView"} + "element": {"#": "bindingView"}, + "hudRepeater": {"@": "hudRepeater"} } }, - "repeater": { + "hudRepeater": { "prototype": "montage/ui/repetition.reel", "properties": { "element": {"#": "hudRepetition"} @@ -35,6 +36,37 @@ "properties": { "element": {"#" : "hud"} } + }, + "nonVisualRepeater": { + "prototype": "montage/ui/repetition.reel", + "properties": { + "element": {"#": "nonVisualRepeater"} + }, + "bindings": { + "objects": { + "boundObject": {"@": "owner"}, + "boundObjectPropertyPath": "nonVisualComponents", + "oneway": true + } + } + }, + "nonVisualComponent": { + "prototype": "js/stage/binding-view.reel/non-visual-component.reel", + "properties": { + "element": {"#": "nonVisualComponent"} + }, + "bindings": { + "objectName": { + "boundObject": {"@": "hudRepetition"}, + "boundObjectPropertyPath": "objectAtCurrentIteration.objectName", + "oneway": true + }, + "objectImage": { + "boundObject": {"@": "undoList"}, + "boundObjectPropertyPath": "objectAtCurrentIteration.objectImage", + "oneway": true + } + } } } -- cgit v1.2.3