function(){
        var me = this,
            task = me.stateTask;

        if (task) {
            task.destroy();
            me.stateTask = null;
        }

        me.clearListeners();
    }
function(){
        var me = this,
            task = me.stateTask;

        if (task) {
            task.destroy();
            me.stateTask = null;
        }

        me.clearListeners();
    }
function ( ) { var me = this , task = me . stateTask ; if ( task ) { task . destroy ( ) ; me . stateTask = null ; } me . clearListeners ( ) ; }
Destroys this stateful object.
Destroys this stateful object .