https://bugzilla.wikimedia.org/show_bug.cgi?id=33497

--- Comment #7 from Dan Barrett <mediaw...@blazemonger.com> 2012-01-06 17:44:46 
UTC ---
Here are the details. The WikiEditor code sets up its beforeunload handler
using this style:

window.onbeforeunload = function() {
  context.$textarea.val( context.$textarea.textSelection( 'getContents' ) );
  if ( context.fallbackWindowOnBeforeUnload ) {
    return context.fallbackWindowOnBeforeUnload();
  }
};

And our extension uses this style:

// when the window unloads, abort pending requests                            
$(window)
  .bind('unload beforeunload', myfunction);

Any suggestion how to change this so our handler doesn't prevent your handler
from running?

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to