WordPress.org

Make WordPress Core

Changeset 19264


Ignore:
Timestamp:
11/12/11 06:48:04 (4 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/thickbox/thickbox.js

    r18848 r19264  
    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(){ // see #19189 
     279        jQuery(this).triggerHandler("unload"); 
     280        jQuery('#TB_window,#TB_overlay,#TB_HideSelect').unbind().remove(); 
     281    }); 
    279282    jQuery("#TB_load").remove(); 
    280283    if (typeof document.body.style.maxHeight == "undefined") {//if IE 6 
Note: See TracChangeset for help on using the changeset viewer.