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

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -