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

git-svn-id: https://develop.svn.wordpress.org/trunk@19264 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2011-11-12 06:48:04 +00:00
parent bd7f04548b
commit 38ddbaca4e
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"});