Sha256: 62aa8be52f7beecbf3145d89c6990f3ac5d17bf2132106327967860a19b2feac

Contents?: true

Size: 833 Bytes

Versions: 18

Compression:

Stored size: 833 Bytes

Contents

<%= copyright_block("#{namespace}.#{class_name.upcase}") %>
/*globals <%= namespace %> */

/** @class

  (Document Your State Here)

  @extends <%= base_class_name || 'SC.Responder' %>
  @version 0.1
*/
<%= namespace %>.<%= class_name.upcase %> = <%= base_class_name || 'SC.Responder' %>.create(
/** @scope <%= namespace %>.<%= class_name.upcase %>.prototype */ {

  /**
    The next state to check if this state does not implement the action.
  */
  nextResponder: null,
  
  didBecomeFirstResponder: function() {
    // Called when this state becomes first responder
  },
  
  willLoseFirstResponder: function() {
    // Called when this state loses first responder
  },
  
  // ..........................................................
  // EVENTS
  //
  
  // add event handlers here
  someAction: function() {
    
  }
  
}) ;

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
sproutcore-1.9.1 lib/gen/responder/templates/states/@filename@_state.js
sproutcore-1.9.0 lib/gen/responder/templates/states/@filename@_state.js
sproutcore-1.8.2.1 lib/gen/responder/templates/states/@filename@_state.js
sproutcore-1.8.1 lib/gen/responder/templates/states/@filename@_state.js
sproutcore-1.8.0 lib/gen/responder/templates/states/@filename@_state.js
sproutcore-1.7.1.beta-java lib/gen/responder/templates/states/@filename@_state.js
sproutcore-1.7.1.beta lib/gen/responder/templates/states/@filename@_state.js
sproutcore-1.6.0.1-java lib/gen/responder/templates/states/@filename@_state.js
sproutcore-1.6.0.1 lib/gen/responder/templates/states/@filename@_state.js
sproutcore-1.6.0.1-x86-mingw32 lib/gen/responder/templates/states/@filename@_state.js
sproutcore-1.6.0 lib/gen/responder/templates/states/@filename@_state.js
sproutcore-1.6.0-java lib/gen/responder/templates/states/@filename@_state.js
sproutcore-1.6.0.rc.2-x86-mingw32 lib/gen/responder/templates/states/@filename@_state.js
sproutcore-1.6.0.rc.2 lib/gen/responder/templates/states/@filename@_state.js
sproutcore-1.6.0.rc.2-java lib/gen/responder/templates/states/@filename@_state.js
sproutcore-1.6.0.rc.1-x86-mingw32 lib/gen/responder/templates/states/@filename@_state.js
sproutcore-1.6.0.rc.1 lib/gen/responder/templates/states/@filename@_state.js
sproutcore-1.6.0.rc.1-java lib/gen/responder/templates/states/@filename@_state.js