Make WordPress Core

Ticket #19189: 19189.triggerHandler.diff

File 19189.triggerHandler.diff, 840 bytes (added by duck_, 14 years ago)
  • wp-includes/js/thickbox/thickbox.js

     
    275275function tb_remove() {
    276276        jQuery("#TB_imageOff").unbind("click");
    277277        jQuery("#TB_closeWindowButton").unbind("click");
    278         jQuery("#TB_window").fadeOut("fast",function(){jQuery('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove();});
     278        jQuery("#TB_window").fadeOut("fast",function(){jQuery('#TB_window,#TB_overlay,#TB_HideSelect').each(function(){ jQuery(this).triggerHandler("unload"); }).unbind().remove();});
    279279        jQuery("#TB_load").remove();
    280280        if (typeof document.body.style.maxHeight == "undefined") {//if IE 6
    281281                jQuery("body","html").css({height: "auto", width: "auto"});