Skip to content

Instantly share code, notes, and snippets.

@tim-evans
Created May 14, 2012 19:21
Show Gist options
  • Select an option

  • Save tim-evans/2695836 to your computer and use it in GitHub Desktop.

Select an option

Save tim-evans/2695836 to your computer and use it in GitHub Desktop.
SC.ObjectController example
MyApp = {};
MyApp.myController = SC.ObjectController.create({
content: SC.Object.create({
proxiedName: 'Bruce Wayne',
maskedName: 'Bats'
}),
maskedName: 'Batman'
});
MyApp.myController.get('proxiedName');
// => 'Bruce Wayne'
MyApp.myController.get('maskedName');
// => 'Batman'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment