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

--- Comment #17 from Michael M. <[email protected]> 2012-01-23 08:19:18 UTC 
---
I think I found a good solution for the problem. I didn't test it, but it
should work and additionally solve several other bugs (bug 30713, bug 33399):

1. In mediawiki.util.js create a jQuery.Callback( 'memory' ) and make it a
public member of mw.util, perhaps as mw.util.callback
2. In mediawiki.page.ready.js call mw.util.callback.fire() for it after
mw.util.$content has been initialized.
3. Whenever the content is changed (at least Live Preview does this) call
mw.util.callback.fire() again.
4. Replace $( document ).ready( callback ) with mw.util.callback.add( callback
) everywhere where the callback relies on $content and should be called when
the content changes (in mediawiki.page.ready.js at least makeCollapsible and
tablesorter).

-- 
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to