File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,26 +13,26 @@ var App = React.createClass({
1313 } ,
1414
1515 openModal : function ( ) {
16- this . setState ( { ... this . state , modalIsOpen : true } ) ;
16+ this . setState ( Object . assign ( { } , this . state , { modalIsOpen : true } ) ) ;
1717 } ,
1818
1919 closeModal : function ( ) {
20- this . setState ( { ... this . state , modalIsOpen : false } ) ;
20+ this . setState ( Object . assign ( { } , this . state , { modalIsOpen : false } ) ) ;
2121 } ,
2222
2323 openSecondModal : function ( event ) {
2424 event . preventDefault ( ) ;
25- this . setState ( { ... this . state , modal2 :true } ) ;
25+ this . setState ( Object . assign ( { } , this . state , { modal2 : true } ) ) ;
2626 } ,
2727
2828 closeSecondModal : function ( ) {
29- this . setState ( { ... this . state , modal2 :false } ) ;
29+ this . setState ( Object . assign ( { } , this . state , { modal2 : false } ) ) ;
3030 } ,
3131
3232 handleModalCloseRequest : function ( ) {
3333 // opportunity to validate something and keep the modal open even if it
3434 // requested to be closed
35- this . setState ( { ... this . state , modalIsOpen : false } ) ;
35+ this . setState ( Object . assign ( { } , this . state , { modalIsOpen : false } ) ) ;
3636 } ,
3737
3838 handleInputChange : function ( ) {
You can’t perform that action at this time.
0 commit comments