Skip to content

Commit

Permalink
Fixed enableLocationHash option
Browse files Browse the repository at this point in the history
  • Loading branch information
lcdsantos committed Nov 15, 2017
1 parent a12c12e commit 68d92be
Show file tree
Hide file tree
Showing 5 changed files with 1,120 additions and 829 deletions.
6 changes: 3 additions & 3 deletions dist/menuspy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! MenuSpy v1.2.0 (Nov 14 2017) - http://leocs.me/menuspy/ - Copyright (c) 2017 Leonardo Santos; MIT License */
/*! MenuSpy v1.2.1 (Nov 15 2017) - http://leocs.me/menuspy/ - Copyright (c) 2017 Leonardo Santos; MIT License */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
Expand Down Expand Up @@ -142,7 +142,7 @@ MenuSpy.prototype.activateItem = function activateItem (inViewElm) {
this.scrollItems.forEach(function (item) { return utils.removeClass(item.elm.parentNode, activeClass); });
this.lastInViewElm = null;

if (this.enableLocationHash) {
if (this.options.enableLocationHash) {
this.debouncedHashFn();
}

Expand All @@ -162,7 +162,7 @@ MenuSpy.prototype.activateItem = function activateItem (inViewElm) {
callback.call(this$1, item);
}

if (this$1.enableLocationHash) {
if (this$1.options.enableLocationHash) {
this$1.debouncedHashFn();
}
}
Expand Down
4 changes: 2 additions & 2 deletions dist/menuspy.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 68d92be

Please sign in to comment.