I have code as follow -

/ Project Button
var btnProject = new Ext.Button({
text: 'Project',
handler: ProjectList

});



// Function - ProjectList
var ProjectList = function (botton, event) {

....

}

// Function - closeList
var closeList = function (botton, event) {

....

}


My Question is -
is there any option, when I click first time on"btnProject", the "ProjectList" will be called and next time "CloseList" will be called?