]> git.sesse.net Git - remoteglot/blobdiff - www/js/chessboard-0.3.0.js
Remove unused variable.
[remoteglot] / www / js / chessboard-0.3.0.js
index ff2bf0384d686c2a6a2f83a9aa950e59dfbcacbe..b97961720e66dbd17c34b88be360c10b60883e8d 100644 (file)
@@ -243,8 +243,7 @@ var widget = {};
 // Stateful
 //------------------------------------------------------------------------------
 
-var ANIMATION_HAPPENING = false,
-  BOARD_BORDER_SIZE = 2,
+var BOARD_BORDER_SIZE = 2,
   CURRENT_ORIENTATION = 'white',
   CURRENT_POSITION = {},
   SQUARE_SIZE,
@@ -800,8 +799,6 @@ function fadeOut(pieces, onFinish) {
 
 // execute an array of animations
 function doAnimations(a, oldPos, newPos) {
-  ANIMATION_HAPPENING = true;
-
   var numFinished = 0;
   function onFinish(e) {
     if (e && e.target) {
@@ -814,7 +811,6 @@ function doAnimations(a, oldPos, newPos) {
     if (numFinished !== a.length) return;
 
     drawPositionInstant();
-    ANIMATION_HAPPENING = false;
 
     // run their onMoveEnd function
     if (cfg.hasOwnProperty('onMoveEnd') === true &&