Skip to content

Commit

Permalink
Merge pull request #275 from kelkes/master
Browse files Browse the repository at this point in the history
Replace addEventListeners calls with addEventListener
  • Loading branch information
troch committed Apr 25, 2018
2 parents d2d3f66 + cd8acfd commit a5f50aa
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 a5f50aa

Please sign in to comment.