From 7513b0653d8a58019a2f1ad315d6540e1004715c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Fauvel?= Date: Mon, 18 Nov 2013 13:38:45 +0100 Subject: [PATCH] Only selected menu links with an id - To avoid a jQuery exception on matchingSection = $("."+id) --- jquery.smint.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.smint.js b/jquery.smint.js index 30c60e9..60dca79 100644 --- a/jquery.smint.js +++ b/jquery.smint.js @@ -17,7 +17,7 @@ If you like Smint, or have suggestions on how it could be improved, send me a tw $.fn.smint = function( options ) { var $smint = this, - $smintItems = $smint.find('a'), + $smintItems = $smint.find('a[id]'), $window = $(window), settings = $.extend({}, $.fn.smint.defaults, options), // Set the variables needed