Bug Tracker

Ticket #2139: compat_unload_fix.patch

File compat_unload_fix.patch, 468 bytes (added by alienbrain, 14 years ago)

Unload event fix for compat-1.0 plugin

  • compat-1.0.js

     
    3232  var o = e[i];
    3333   
    3434  // Handle event unbinding
    35   jQuery.fn["un"+o] = function(f){ return this.unbind(o, f); };
     35  jQuery.fn["un"+o] = jQuery.fn["un"+o] || function(f){ return this.unbind(o, f); };
    3636   
    3737  // Finally, handle events that only fire once
    3838  jQuery.fn["one"+o] = function(f){