summaryrefslogtreecommitdiff
path: root/public/board.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/board.js')
-rw-r--r--public/board.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/public/board.js b/public/board.js
index 4afaeb7..bd39363 100644
--- a/public/board.js
+++ b/public/board.js
@@ -32,7 +32,7 @@ function handle_highlight(id) {
}
function handle_move(from_id, to_id) {
- function fun() {
+ return function() {
let table = { 1: 'K', 2: 'Q', 3: 'R', 4: 'B', 5: 'N', 6: 'p' }
let from_y = from_id.charCodeAt(0) - 48
@@ -143,6 +143,4 @@ function handle_move(from_id, to_id) {
to_move = !to_move
}
-
- return fun;
}