https://bugzilla.wikimedia.org/show_bug.cgi?id=30007
Web browser: ---
Bug #: 30007
Summary: The function mw.loader.using is not loading modules
Product: MediaWiki
Version: (wikimedia-deployment)
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Javascript
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
On [[mw:ResourceLoader/Default_modules#mediaWiki.loader]] there is the
following example:
--------------------------------------------------
mw.loader.using( 'jquery.colorUtil', function() {
var curColor = 'rgb(70,140,210)';
var newColor = $.colorUtil.getColorBrightness( curColor, +0.2 );
alert( '20% brigher than ' + curColor + ' is ' + newColor );
} );
--------------------------------------------------
if I run it on javascript console of Google Chrome 12.0.742.122, while I am at
[[some wiki page]] I get the following error:
===============================================================
TypeError: Cannot call method 'getColorBrightness' of undefined
===============================================================
Am I missing something or there is a problem with mw.loader.using?
--
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