Permalink
Browse files

small js animation fix

  • Loading branch information...
1 parent 62e1738 commit 70a76b4d01596cb24b8bc7a1a400ba32d10d4299 @tux21b committed Nov 30, 2013
Showing with 2 additions and 4 deletions.
  1. +1 −1 chess.html
  2. +1 −3 chess.js
View
@@ -65,7 +65,7 @@ <h3 id="result">Checkmate: White wins!</h3>
</div>
© Christoph Hack, 2012. Grab the source on
<a href="https://github.com/tux21b/ChessBuddy">GitHub</a>.<br />
- Proudly powered by <a href="http://golang.org/">Go 1</a>!
+ Proudly powered by <a href="http://golang.org/">Go 1.2</a>!
</footer>
</div>
</body>
View
@@ -181,9 +181,7 @@ ChessGame.prototype.renderAnim = function(t) {
ctx.textBaseline = "middle";
ctx.fillStyle = "#000000";
- if (t == undefined) {
- t = Date.now();
- }
+ var t = Date.now();
var update = false;
for (var a in this.anim) {
var an = this.anim[a];

0 comments on commit 70a76b4

Please sign in to comment.