function signal(evt) {
  var s = this.states[this.state];
  if (s && 'signal' in s) {
    sm.last.event=evt;
    var action = s.signal.call(this,evt);
    if (action) chgTo.call(this,action.state,action.wait||0);
    }
  }
// signal the current state passing it the given event (evt)
signal the current state passing it the given event (evt)
signal the current state passing it the given event ( evt )
function signal(evt) {
  var s = this.states[this.state];
  if (s && 'signal' in s) {
    sm.last.event=evt;
    var action = s.signal.call(this,evt);
    if (action) chgTo.call(this,action.state,action.wait||0);
    }
  }
function signal ( evt ) { var s = this . states [ this . state ] ; if ( s && 'signal' in s ) { sm . last . event = evt ; var action = s . signal . call ( this , evt ) ; if ( action ) chgTo . call ( this , action . state , action . wait || 0 ) ; } }
signal the current state passing it the given event (evt)
signal the current state passing it the given event ( evt )