User "Catrope" posted a comment on MediaWiki.r98080. Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/98080#c23430 Commit summary:
MoodBar: Write the filter state to a cookie and read it on page load. This still needs AJAX filtering to be implemented and the on-page-load state to actually take effect. Comment: They work in for loops, too, even without var, remember? I haven't read the ECMAScript spec but I would expect that it defines the comma operator very similar to C's, in that <code>a, b</code> is an expression that first evaluates <code>a</code>, discards the result, then evaluates <code>b</code>, and returns that result. <code>a, b, c</code> would associate as <code>a, (b, c)</code> so a would be evaluated first, then b, then c, and c would be returned. In other words, <code>x = (y = 3, z = 4);</code> is equivalent to <code>y = 3; x = (z = 4);</code>. Make sense? :D _______________________________________________ MediaWiki-CodeReview mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview
