https://bugzilla.wikimedia.org/show_bug.cgi?id=34603
Web browser: ---
Bug #: 34603
Summary: Allow usage of mw.util in altered scope/ environment
Product: MediaWiki
Version: 1.19
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Javascript
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
Created attachment 10074
--> https://bugzilla.wikimedia.org/attachment.cgi?id=10074
patch that changes *this* to *util* allowing calling this function with another
*this* or even no *this*
Krinkle assigned on Commons e.g.
addPortletLink = mw.util.addPortletLink;
This may cause errors if references to *this* (util) are made like in
addPortletLink. Most of the code does not use *this*, instead it refers to
*util*.
Background (commons-specific): On css pages this caused "this is undefined",
called from MediaWiki:Gadget-CSSValidate.js
--
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