Last modified: 2010-12-20 22:48:07 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T28255, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26255 - Flaggedrevs.js file contains some syntax errors
Flaggedrevs.js file contains some syntax errors
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
FlaggedRevs (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Rob Lanphier
:
Depends on:
Blocks: 26334
  Show dependency treegraph
 
Reported: 2010-12-05 21:29 UTC by Szőts Ákos
Modified: 2010-12-20 22:48 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Szőts Ákos 2010-12-05 21:29:18 UTC
Please, put some semicolons in the file FlaggedRevs/client/flaggedrevs.js to the following places, after the closing curly brackets:
lines
- 163
- 179
- 222
- 229
- 231
- 237

Thank you!
Comment 1 Szőts Ákos 2010-12-05 21:32:31 UTC
And to the review.js also :)

Affected lines:
- 63
- 76
- 94
- 312
Comment 2 Aaron Schulz 2010-12-05 23:30:08 UTC
I haven't heard of any browsers having problems with this. But it should be done anyway.
Comment 3 Aaron Schulz 2010-12-05 23:35:26 UTC
(In reply to comment #2)
> I haven't heard of any browsers having problems with this. But it should be
> done anyway.

Done in r77844,r77845.
Comment 4 Szőts Ákos 2010-12-05 23:36:18 UTC
Thank you!

I'm combining all of the JS files MediaWiki uses into a big one, and Firefox
showed some warnings that semicolons are missing.
Comment 5 Roan Kattouw 2010-12-07 16:18:37 UTC
(In reply to comment #2)
> I haven't heard of any browsers having problems with this. But it should be
> done anyway.
One thing is it's cleaner to end a statement with a semicolon, although not strictly required. If the last statement in a file doesn't end with a semicolon, concatenating files can result in strange bugs.

Declarations like function foo( args ) { code } don't need a semicolon, but things like var foo = function( args ) { code }; do, because they're statements (assignments).

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links