mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Merge "ViewPageTarget.init: Correct docs: ve.libs.mw → mw.libs.ve"
This commit is contained in:
commit
d71279cdfe
|
@ -111,15 +111,15 @@
|
||||||
*
|
*
|
||||||
* @example
|
* @example
|
||||||
* // Register ResourceLoader module
|
* // Register ResourceLoader module
|
||||||
* ve.libs.mw.addPlugin( 'ext.gadget.foobar' );
|
* mw.libs.ve.addPlugin( 'ext.gadget.foobar' );
|
||||||
*
|
*
|
||||||
* // Register a callback
|
* // Register a callback
|
||||||
* ve.libs.mw.addPlugin( function ( target ) {
|
* mw.libs.ve.addPlugin( function ( target ) {
|
||||||
* ve.dm.Foobar = .....
|
* ve.dm.Foobar = .....
|
||||||
* } );
|
* } );
|
||||||
*
|
*
|
||||||
* // Register a callback that loads another script
|
* // Register a callback that loads another script
|
||||||
* ve.libs.mw.addPlugin( function () {
|
* mw.libs.ve.addPlugin( function () {
|
||||||
* return $.getScript( 'http://example.com/foobar.js' );
|
* return $.getScript( 'http://example.com/foobar.js' );
|
||||||
* } );
|
* } );
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue