Fix caching issues when trying to get DOM element's data-section attribute value (#308)
Paz Aricha
committed Oct 31, 2017
commit 66c57eac23b9a5857e2353ff9261c1a362caccc2
Showing 1
changed file with
1 additions
and 1 deletions
vendor/assets/javascripts/ahoy.js
+1
-1
| @@ | @@ -208,7 +208,7 @@ |
| id: $target.attr("id"), | |
| "class": $target.attr("class"), | |
| page: page(), | |
| - | section: $target.closest("*[data-section]").data("section") |
| + | section: $target.closest("*[data-section]").attr("data-section") |
| }; | |
| } | |