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

--- Comment #6 from mybugs.m...@gmail.com 2012-11-09 12:28:37 UTC ---
In the test above, the gadgets were defined as follows:
[[MediaWiki:Gadgets-definition]]
* bug41453[ResourceLoader]|bug41453.js
* bug41453b[ResourceLoader]|bug41453b.js

[[MediaWiki:Gadget-bug41453.js]]
// See https://bugzilla.wikimedia.org/show_bug.cgi?id=41453
mw.loader.using([ 'mediawiki.util', 'jquery.placeholder', 'jquery.spinner' ],
function(){
    console.warn( 'Ready callback was executed.', arguments );
}, function(){
    console.warn( 'Error callback was executed.', arguments );
});
console.warn( 'mw.loader.using was executed. What about the callbacks?' );
mw.loader.load('ext.gadget.bug41453b');
console.warn( 'And what about mw.loader.loader? Did it load the other gadget?'
);

[[MediaWiki:Gadget-bug41453b.js]]
console.warn('The other gadget was loaded by mw.loader.load');

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