ff-stream-web

git clone git://archive.git.mtrnord.blog/MTRNord/ff-stream-web.git
Log | Files | Refs | README | LICENSE

commit cd92ff727b4a69cd7912f9a1464991021d16ac48
parent 877daaf8f677b7740653b59209772be323f3a2aa
Author: Evgeny Murashkin <rusjoan@ya.ru>
Date:   Fri, 15 Apr 2016 14:23:47 +0300

removeLocationListener -> removeHistoryListener

Diffstat:
Msrc/client.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/client.js b/src/client.js @@ -82,7 +82,7 @@ function run() { FastClick.attach(document.body); // Re-render the app when window.location changes - const removeLocationListener = history.listen(location => { + const removeHistoryListener = history.listen(location => { currentLocation = location; match(routes, { path: location.pathname, @@ -112,7 +112,7 @@ function run() { addEventListener(window, 'scroll', setPageOffset); addEventListener(window, 'pagehide', () => { removeEventListener(window, 'scroll', setPageOffset); - removeLocationListener(); + removeHistoryListener(); }); }