Handle window resize events in React way

Use the React-way of handling resize events. Essentially store the window size in component state instead of doing some custom handling.

See http://facebook.github.io/react/tips/dom-event-listeners.html
Этот коммит содержится в:
Antti Ahti
2015-10-16 12:32:19 +03:00
родитель 4404912909
Коммит d3f99e8217
6 изменённых файлов: 95 добавлений и 34 удалений

Просмотреть файл

@@ -968,3 +968,11 @@ export function getShortenedTeamURL() {
}
return teamURL + '/';
}
export function windowWidth() {
return $(window).width();
}
export function windowHeight() {
return $(window).height();
}