ff-stream-web

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

commit 48890c6d40994ab0107a72ca4bd564e7c66e8923
parent e8917cfbab6e0f0e1420facb69c80e413875e3e3
Author: Paul Shen <paulshen0@gmail.com>
Date:   Sat, 22 Aug 2015 10:53:23 -0700

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() {