Skip to content

Commit c9356a6

Browse files
mantonigoto-bus-stop
authored andcommitted
Fix wrong this usage in nanohref integration (#689)
I currently see `TypeError: undefined is not an object (evaluating 'this._hashEnabled')` being thrown by clients. This should fix it.
1 parent f5f8ccf commit c9356a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Choo.prototype.start = function () {
129129
var href = location.href
130130
var hash = location.hash
131131
if (href === window.location.href) {
132-
if (!this._hashEnabled && hash) scrollToAnchor(hash)
132+
if (!self._hashEnabled && hash) scrollToAnchor(hash)
133133
return
134134
}
135135
self.emitter.emit(self._events.PUSHSTATE, href)

0 commit comments

Comments
 (0)