Thickbox: do .triggerHandler() instead of .trigger(), props duck_, fixes #19189

git-svn-id: http://svn.automattic.com/wordpress/trunk@19264 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2011-11-12 06:48:04 +00:00
parent cc2232068a
commit ac807f00fb
1 changed files with 4 additions and 1 deletions

View File

@ -275,7 +275,10 @@ function tb_showIframe(){
function tb_remove() {
jQuery("#TB_imageOff").unbind("click");
jQuery("#TB_closeWindowButton").unbind("click");
jQuery("#TB_window").fadeOut("fast",function(){jQuery('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove();});
jQuery("#TB_window").fadeOut("fast",function(){ // see #19189
jQuery(this).triggerHandler("unload");
jQuery('#TB_window,#TB_overlay,#TB_HideSelect').unbind().remove();
});
jQuery("#TB_load").remove();
if (typeof document.body.style.maxHeight == "undefined") {//if IE 6
jQuery("body","html").css({height: "auto", width: "auto"});