From 5260c2a4fdd4afe7c4b79f9d26833b4ab5c26469 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Emonet?= Date: Tue, 8 Apr 2014 00:49:41 +0200 Subject: [PATCH] [goto] fix: goto was not going to the last slide when countNested=false * changed >= to > for the fix * also checking for non-positive values --- extensions/goto/deck.goto.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/goto/deck.goto.js b/extensions/goto/deck.goto.js index 6a90f16c..e3d5b0bd 100644 --- a/extensions/goto/deck.goto.js +++ b/extensions/goto/deck.goto.js @@ -78,7 +78,7 @@ the deck container. var index = parseInt(indexOrId, 10); if (!options.countNested) { - if (!isNaN(index) && index >= rootCounter) { + if (!isNaN(index) && (index > rootCounter || index <= 0)) { return false; } $.each($.deck('getSlides'), function(i, $slide) {