ff-stream-web

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

commit eb0b192106a5b8d09eff8a4c4956153137680c3b
parent e8917cfbab6e0f0e1420facb69c80e413875e3e3
Author: Konstantin Tarkus <koistya@gmail.com>
Date:   Sun, 23 Aug 2015 00:15:30 +0300

Merge pull request #232 from paulshen/patch-1

Use const RESIZE_EVENT in withViewport
Diffstat:
Msrc/decorators/withViewport.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/decorators/withViewport.js b/src/decorators/withViewport.js @@ -32,7 +32,7 @@ function withViewport(ComposedComponent) { window.addEventListener('resize', handleWindowResize); window.addEventListener('orientationchange', handleWindowResize); } - EE.on('resize', this.handleResize, this); + EE.on(RESIZE_EVENT, this.handleResize, this); } componentWillUnmount() {