Skip to content

Commit

Permalink
fix: replace addEventListeners calls with addEventListener
Browse files Browse the repository at this point in the history
  • Loading branch information
David Wippel committed Apr 25, 2018
1 parent d2d3f66 commit cd8acfd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/router5BrowserPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
window.addEventListener('popstate', fn);

if (!supportsPopStateOnHashChange()) {
window.addEventListeners('hashchange', fn);
window.addEventListener('hashchange', fn);
}
};

Expand Down
2 changes: 1 addition & 1 deletion packages/docs/server/public/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5802,7 +5802,7 @@ and limitations under the License.
},
addPopstateListener: function(e) {
window.addEventListener('popstate', e),
a() || window.addEventListeners('hashchange', e)
a() || window.addEventListener('hashchange', e)
},
removePopstateListener: function(e) {
window.removeEventListener('popstate', e),
Expand Down
2 changes: 1 addition & 1 deletion packages/router5/modules/plugins/browser/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const addPopstateListener = fn => {
window.addEventListener('popstate', fn)

if (!supportsPopStateOnHashChange()) {
window.addEventListeners('hashchange', fn)
window.addEventListener('hashchange', fn)
}
}

Expand Down

0 comments on commit cd8acfd

Please sign in to comment.