Skip to content

Commit

Permalink
Use number comparison instead of the minus character detection
Browse files Browse the repository at this point in the history
  • Loading branch information
mathjazz committed Mar 22, 2012
1 parent 36cfa70 commit 4f11b69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shells/onstage.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
if (this.views.remote)
this.postMsg(this.views.remote, "SET_CURSOR", argv[1]);
} else {
$("#nextslideidx").innerHTML = (argv[1].charAt(0) !== "-") ? argv[1] : "END";
$("#nextslideidx").innerHTML = +argv[1] < 0 ? "END" : argv[1];
}
}
if (aEvent.source === this.views.present) {
Expand Down

0 comments on commit 4f11b69

Please sign in to comment.