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