Skip to content

Commit 68d92be

Browse files
committed
Fixed enableLocationHash option
1 parent a12c12e commit 68d92be

File tree

5 files changed

+1120
-829
lines changed

5 files changed

+1120
-829
lines changed

dist/menuspy.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! MenuSpy v1.2.0 (Nov 14 2017) - http://leocs.me/menuspy/ - Copyright (c) 2017 Leonardo Santos; MIT License */
1+
/*! MenuSpy v1.2.1 (Nov 15 2017) - http://leocs.me/menuspy/ - Copyright (c) 2017 Leonardo Santos; MIT License */
22
(function (global, factory) {
33
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
44
typeof define === 'function' && define.amd ? define(factory) :
@@ -142,7 +142,7 @@ MenuSpy.prototype.activateItem = function activateItem (inViewElm) {
142142
this.scrollItems.forEach(function (item) { return utils.removeClass(item.elm.parentNode, activeClass); });
143143
this.lastInViewElm = null;
144144

145-
if (this.enableLocationHash) {
145+
if (this.options.enableLocationHash) {
146146
this.debouncedHashFn();
147147
}
148148

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

165-
if (this$1.enableLocationHash) {
165+
if (this$1.options.enableLocationHash) {
166166
this$1.debouncedHashFn();
167167
}
168168
}

dist/menuspy.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)