Merge pull request #21 from OskarD/master

#15 Fixed bad escape
This commit is contained in:
Kam Low 2016-12-12 11:03:29 +01:00 committed by GitHub
commit e60f5d5a5e

View File

@ -121,7 +121,7 @@ Traverse.prototype._events = function() {
this.$element.on('click', 'a[href^="#"]', function(e) { //'click.zf.traverse'
e.preventDefault();
var arrival = this.getAttribute('href').replace(".", "\\\\."),
var arrival = this.getAttribute('href').replace(".", "\\."),
scrollPos = $(arrival).offset().top - _this.options.barOffset; // - _this.options.threshold / 2 - _this.options.barOffset;
$body.stop(true).animate({