Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## statechart.js
- JC.statechart = SC.Statechart.create({
- rootState: SC.State.design({
- substatesAreConcurrent: YES,
- showingTreePanel: SC.State.plugin('JC.stateHome')
- })
- });
- ## state_home.js
- JC.stateHome = SC.State.extend({
- initialSubstate: 'ready',
- enterState: function() {
- console.log("Hello World");
- },
- exitState: function() {
- },
- ready: SC.State.design({
- enterState: function() { console.log("Hello World"); }
- })
- });
Add Comment
Please, Sign In to add comment