Revert [19264] to keep back-compat. Any improperly fired window.unload will have to be dealt with on a case by case basis.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19451 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2011-11-25 17:33:31 +00:00
parent 572dcb6205
commit b41176ce79
1 changed files with 1 additions and 4 deletions

View File

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