code: function() {
          if (!this.states) return
  
          if (!this.states.hasOwnProperty(INIT_STATE))
            this.state(INIT_STATE, {})
  
          var name, states = this.states
          for (name in states)
            this.state(name, states[name])
        }
docs: Declare states from `this.states`, which is a hash : { stateName: data, ... } Also defines `init` state if not defined in the hash.