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

            Bug ID: 63466
           Summary: Deprecate mw.util.$content
           Product: MediaWiki
           Version: 1.23-git
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: JavaScript
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
       Web browser: ---
   Mobile Platform: ---

mw.util.$content from module mediawiki.util seams to be needless.

    $( function () {
        mw.util.$content...
    } );
can be replaced by
    mw.hook( 'wikipage.content' ).add( function ( $content ) {
        $content...
    } );

mw.hook() is necessary to support Live Preview[1].

[1] https://www.mediawiki.org/wiki/Manual:Live_preview

-- 
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