https://bugzilla.wikimedia.org/show_bug.cgi?id=30713
--- Comment #15 from Krinkle <[email protected]> --- (In reply to comment #13) > Just for the record (because no one wrote it here): > > https://git.wikimedia.org/blob/mediawiki%2Fcore/ > ffc14761a50740a6ffbdf39e6a5c5a85b51713cc/resources%2Fmediawiki. > action%2Fmediawiki.action.edit.preview.js#L100 > > $( mw ).trigger( 'LivePreviewDone', [copySelectors] ); > > ^^ This is how the event is currently emitted for LivePreview. That's not how it is supposed to be used though. I introduced the wikipage.content event in mw.hook for core, but non-core isn't using this yet (by core I mean the initial page load from the server side). live preview should emit that event instead so that tools (e.g. jquery.tablesorter, jquery.makeCollapsible etc.) can reliably bind their init to that instead of doing both document-ready and the non-standard jQuery() event wrapping on the "mw" object. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
