ff-stream-web

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

commit 9b8389eb9c8cd68c86b8abeadaa1c825edd68831
parent 0d65fd510997175182bb56340cb11fee5a17faf0
Author: Konstantin Tarkus <hello@tarkus.me>
Date:   Thu, 27 Aug 2015 00:29:45 +0300

Move FashClick.attach(..) into the run() function in app.js

Diffstat:
Msrc/app.js | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/app.js b/src/app.js @@ -28,6 +28,8 @@ const context = { }; function run() { + FastClick.attach(document.body); + router.dispatch({ path: window.location.pathname, context }, (state, component) => { ReactDOM.render(component, container, () => { let css = document.getElementById('css'); @@ -58,4 +60,4 @@ new Promise(resolve => { window.attachEvent('onload', resolve); window.attachEvent('popstate', handlePopState); } -}).then(() => FastClick.attach(document.body)).then(run); +}).then(run);