;
                     }

                     return this;
                 },


                 _activateStateNamed: function(stateName){
                     for(var i = 0; i < this._states.length; i++){
                         if( this._states[i].stateName == stateName ){
                             this._activateState( this._states[i] );
                         }
                     }
                 },

                 _activateState: function(newState){

                     if( newState === t