Skip to content

Commit 58252cf

Browse files
committed
Fix conflicting var names
1 parent 2d79c84 commit 58252cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

smooth-scroll.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
// Update the URL
126126
// Private method
127127
// Runs functions
128-
var updateURL = function ( anchor, url ) {
128+
var updateUrl = function ( anchor, url ) {
129129
if ( history.pushState && (url || url === 'true') ) {
130130
history.pushState( {
131131
pos: anchor.id
@@ -163,7 +163,7 @@
163163
}
164164

165165
// Update URL
166-
updateURL(anchor, updateURL);
166+
updateUrl(anchor, updateURL);
167167

168168
// Stop the scroll animation when it reaches its target (or the bottom/top of page)
169169
// Private method

0 commit comments

Comments
 (0)