Guest User

Untitled

a guest
Jan 17th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. ## statechart.js
  2.  
  3. JC.statechart = SC.Statechart.create({
  4. rootState: SC.State.design({
  5. substatesAreConcurrent: YES,
  6.  
  7. showingTreePanel: SC.State.plugin('JC.stateHome')
  8. })
  9. });
  10.  
  11.  
  12. ## state_home.js
  13.  
  14.  
  15. JC.stateHome = SC.State.extend({
  16. initialSubstate: 'ready',
  17.  
  18. enterState: function() {
  19. console.log("Hello World");
  20. },
  21.  
  22. exitState: function() {
  23. },
  24.  
  25. ready: SC.State.design({
  26. enterState: function() { console.log("Hello World"); }
  27. })
  28. });
Add Comment
Please, Sign In to add comment