diff --git a/turn.js b/turn.js index c2569c2..4e1ec49 100644 --- a/turn.js +++ b/turn.js @@ -987,7 +987,7 @@ turnMethods = { if (data.display=='single') { var left = corner.charAt(1)=='l'; - if ((opts.page==1 && left) || (opts.page==data.pages && !left)) + if ((opts.page==1 && left) || (opts.page==data.totalPages && !left)) e.preventDefault(); else { if (left) {