MediaWiki talk:Gadget-FastRevert.js

Why does the loop in line 18 only iterate for i<length-1? edit

I think this must be the reason why the gadget doesn't add a revert button next to the first edit. I've run into this limitation many times, just now over at Rhymes:Polish/isat͡ɕ for instance. Fytcha (talk) 12:04, 9 December 2021 (UTC)Reply

@Erutuon: Could you please have a look at this? Fytcha (talk) 20:08, 13 December 2021 (UTC)Reply
@Fytcha: Yeah, that was it. I have no idea why it was length - 1; that change was introduced in this edit. Maybe it was a mistake. — Eru·tuon 04:11, 14 December 2021 (UTC)Reply
@Erutuon: Thanks for looking into it! Fytcha (talk) 11:51, 14 December 2021 (UTC)Reply
Return to "Gadget-FastRevert.js" page.