-
Notifications
You must be signed in to change notification settings - Fork 154
Home
This, that and the other edited this page Dec 31, 2013
·
9 revisions
Welcome to the Twinkle wiki! Here, you will find information for coders working on Twinkle.
- We shouldn't use
$.each
anymore for simple array iteration. There's no need for it - all our target browsers supportArray.prototype.forEach
, which is almost certainly going to be faster - and it avoids having to worry about theindex
parameter.$.each
is still needed for iterating safely over dictionary objects. TTO, 2013-12-17 - AzaToth has lately been using
mw.Api
in new code. Personally, I prefer to stick withMorebits.wiki.api
- obviously that means that we are stuck with XML, and with the slightly crazy constructor - but until we can write a light "wrapper" that talks toMorebits.status
, I think we should stick to our own morebits code. TTO, 2013-12-17