Skip to content

Instantly share code, notes, and snippets.

@erichocean
Created January 13, 2011 18:37
Show Gist options
  • Save erichocean/778363 to your computer and use it in GitHub Desktop.
Save erichocean/778363 to your computer and use it in GitHub Desktop.
How to do view controllers in SC
MyApp.menuPane.statechart: SC.Statechart.create({
});
MyApp.myPage = SC.Page.design({
menuPane: SC.Pane.design({
// will get mouseDown: etc. from the pane
defaultResponder: MyApp.menuPane.statechart,
render: function(context, firstTime) {
// render the HTML
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment