javascript - How to destroy YUI Panel on close? -


i want able destroy yui panel when user clicks close button.

i have tried using hideevent not work. i'm assuming since object still active , therefore cannot destroyed:

panel.hideevent.subscribe(function(o) {     panel.destroy(); }); 

is there way can destroy panel when user clicks close? close button not assigned id although assigned class:

<a class="container-close" href="#">close</a> 

ending having use settimeout() function:

panel.hideevent.subscribe(function(o) {     settimeout(function() {panel.destroy();}, 0); }); 

Comments

Popular posts from this blog

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

apache - Add omitted ? to URLs -

php - How can I stop spam on my custom forum/blog? -