Skip to content

Commit

Permalink
Bug Fix
Browse files Browse the repository at this point in the history
Fixed 'unrecognized expression: [href=#scrollto-section-2]' error, reported by Jakub in issues.
Enclosed special characters in quotes when using a attribute based selector.
Line #111 & Line #141

Tested on 1.7.0 and later versions.
  • Loading branch information
m-danish-iqbal committed Jan 25, 2016
1 parent 537fdc2 commit fd9e8fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jquery.section-scroll.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* jQuery Section Scroll v1.0.0
* jQuery Section Scroll v1.0.1
*
* Copyright (c) 2016 Danish Iqbal
* http://plugins.imdanishiqbal.com/section-scroll
Expand Down Expand Up @@ -108,7 +108,7 @@
menuItems
.removeClass("active")
.end()
.find('a').filter("[href=#" + id + "]")
.find('a').filter('[href="#' + id + '"]')
.parent()
.addClass("active");
});
Expand Down Expand Up @@ -138,7 +138,7 @@
menuItems
.removeClass("active")
.end()
.find('a').filter("[href=#" + id + "]")
.find('a').filter('[href="#' + id + '"]')
.parent()
.addClass("active");
});
Expand Down

0 comments on commit fd9e8fc

Please sign in to comment.