Fix "undefined" showing up in round list in submit page

Review Request #94 - Created Oct. 18, 2009 and submitted

Information
Bogdan-Cristian Tătăroiu
infoarena
Reviewers
hackers
Ran JSLint on the submit.js script and fixed what was suggested there. We should probably do this on all js files.

The problem was caused by the for (var key in rounds) loop which iterated through properties from the "rounds" object's prototype. Was fixed by adding a if (rounds.hasOwnProperty(key)).

Bogdan-Cristian Tătăroiu
Review request changed

Change Summary:

Commited diff without review since it's been on live already for the past 4 months. :)

Diff:

Revision 2 (+34 -32)

Show changes

Loading...