0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-06 20:52:40 +00:00

Editor and renderer redraw when you resize the browser

This commit is contained in:
Scott Tolksdorf
2016-08-20 13:26:48 -04:00
parent ef8784ccf2
commit 888d3faa4c
4 changed files with 22 additions and 11 deletions

View File

@@ -52,14 +52,7 @@ var EditPage = React.createClass({
},
savedBrew : null,
test : ()=>{
},
componentDidMount: function(){
console.log('getting here');
this.debounceSave = _.debounce(this.save, SAVE_TIMEOUT);
window.onbeforeunload = ()=>{
if(this.state.isSaving || this.state.isPending){