Skip to content

Instantly share code, notes, and snippets.

@ccapndave
Created June 5, 2012 14:02
Show Gist options
  • Select an option

  • Save ccapndave/2875205 to your computer and use it in GitHub Desktop.

Select an option

Save ccapndave/2875205 to your computer and use it in GitHub Desktop.
package ember;
@:native("Ember.StateManager")
extern class StateManager extends State {
public function new():Void;
public var enableLogging:Bool;
/**
* The name of the initial state. The transition to this state will occur as soon as the state machine is initialized.
*/
public var initialState:String;
/**
* A hash of state names to States.
*/
public var states:Dynamic<State>;
/**
* When using ViewStates this gives the jQuery selector of the element to replace.
*/
public var rootElement:String;
public function send(action:String, ?context:Dynamic):Void;
public function goToState(stateName:String):Void;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment