Changes between Initial Version and Version 1 of Ticket #19189, comment 24
- Timestamp:
- 11/25/2011 10:27:11 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #19189, comment 24
initial v1 1 The equivalent code to azaozz's snippet, for jQuery 1.7+, using a delegated event (as `#TB_window` doesn't exist at the time the handler is being attached, as you pointed out) would be:1 The almost equivalent code to azaozz's snippet, for jQuery 1.7+, using a delegated event (as `#TB_window` doesn't exist at the time the handler is being attached, as you pointed out) would be: 2 2 {{{ 3 3 jQuery(document).on('unload', '#TB_window', function(e){ 4 console.log('#TB_window unloaded.'); 4 5 console.log(e); 5 6 });