Skip to content

Instantly share code, notes, and snippets.

@workmanw
Forked from tim-evans/binding_bug.js
Created July 1, 2011 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save workmanw/1058772 to your computer and use it in GitHub Desktop.
Save workmanw/1058772 to your computer and use it in GitHub Desktop.
Binding bug??
Tce.mainPage = SC.Page.design({
// The main pane is made visible on screen as soon as your app is loaded.
// Add childViews to this pane for views to display immediately on page
// load.
mainPane: SC.MainPane.design({
childViews: 'myCustomView'.w(),
myCustomView: SC.View.design({
childViews: ['checkbox'],
layout: { centerX: 0, centerY: 20, width: 200, height: 18 },
isSelected: YES,
checkbox: SC.CheckboxView.design({
layout: { left: 0, top: 0, right: 0, bottom: 0 },
isSelectedBinding: '.parentView.isSelected'
})
})
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment