From 4c3aac5eabd93052b1554a03d78235215bb49db4 Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Tue, 29 May 2012 00:34:40 -0700 Subject: 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 --- js/stage/stage.reel/stage.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'js/stage/stage.reel/stage.html') diff --git a/js/stage/stage.reel/stage.html b/js/stage/stage.reel/stage.html index 30c3d231..89b674ab 100755 --- a/js/stage/stage.reel/stage.html +++ b/js/stage/stage.reel/stage.html @@ -18,25 +18,25 @@ } }, - "StageDeps1": { + "stageDeps": { "prototype": "js/stage/stage-deps", "properties": { "stage": {"@": "owner"} + }, + "bindings": { + "currentDocument": {"<-": "@owner.currentDocument"} } }, - "layout1": { + "layout": { "prototype": "js/stage/layout", "properties": { "canvas": {"#": "layoutCanvas"}, "stage": {"@": "owner"} }, "bindings": { - "layoutView": { - "boundObject": {"@": "owner" }, - "boundObjectPropertyPath": "appModel.layoutView", - "oneway": true - } + "layoutView": {"<-": "@owner.appModel.layoutView"}, + "currentDocument": {"<-": "@owner.currentDocument"} } }, @@ -59,8 +59,8 @@ "_layoutCanvas": {"#": "layoutCanvas"}, "_canvas": {"#": "stageCanvas"}, "_drawingCanvas": {"#": "drawingCanvas"}, - "stageDeps": {"@": "StageDeps1"}, - "layout": {"@": "layout1"}, + "stageDeps": {"@": "stageDeps"}, + "layout": {"@": "layout"}, "stageView": {"@": "stageView"}, "textTool": {"@": "textTool"}, "focusManager": {"@": "focusManager"} -- cgit v1.2.3