Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Eben Blaisdell
blockcode
Commits
7541acca
Commit
7541acca
authored
Feb 05, 2017
by
Eben Blaisdell
Browse files
addToRankings fix
parent
53e52b25
Changes
1
Hide whitespace changes
Inline
Side-by-side
index.js
View file @
7541acca
...
...
@@ -259,7 +259,7 @@ function setUserInfo(username,userInfo){
function
addToRankings
(
playerScore
){
var
index
=
0
;
while
(
rankings
[
index
]
&&
rankings
[
index
][
1
]
>
=
playerScore
[
1
]){
index
++
;}
while
(
rankings
[
index
]
&&
rankings
[
index
][
1
]
>
playerScore
[
1
]){
index
++
;}
rankings
.
splice
(
index
,
0
,
playerScore
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment