From 15b354820c219ba6977e2af9122058172c7d2cf2 Mon Sep 17 00:00:00 2001 From: Ahmad Abdel-Yaman Date: Wed, 17 Feb 2016 14:17:01 +0200 Subject: [PATCH] Escape '#' in Magellan anchor selector --- js/foundation/foundation.magellan.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/foundation/foundation.magellan.js b/js/foundation/foundation.magellan.js index caff83822..8d1aae3a5 100644 --- a/js/foundation/foundation.magellan.js +++ b/js/foundation/foundation.magellan.js @@ -32,7 +32,7 @@ S(self.scope) .off('.magellan') - .on('click.fndtn.magellan', '[' + self.add_namespace('data-magellan-arrival') + '] a[href*=#]', function (e) { + .on('click.fndtn.magellan', '[' + self.add_namespace('data-magellan-arrival') + '] a[href*=\\#]', function (e) { var sameHost = ((this.hostname === location.hostname) || !this.hostname), samePath = self.filterPathname(location.pathname) === self.filterPathname(this.pathname), testHash = this.hash.replace(/(:|\.|\/)/g, '\\$1'), -- 2.47.2