jquery plugin invoke callback not properly

jquery plugin invoke callback not properly

I write a simple jq plugin, it main function is :


  1. popup a window, on the window I have a button, suppose this button's name is btn.
  2. click that button btn, then hide window and invoke the callback function.
 



My code is here :


Here, I found the callBack function can not be invoked properly.

For example, if I click #show first, the callback function show me 111111. then, I click #more, the callback function still show me 111111

if I click #more first, got message 222222, then click #show, got 222222.

That it to say, the callback function always execute the first click.

How can I fix this? Any suggest is welcome.

Thanks.