File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -13,26 +13,26 @@ var App = React.createClass({
13
13
} ,
14
14
15
15
openModal : function ( ) {
16
- this . setState ( { ... this . state , modalIsOpen : true } ) ;
16
+ this . setState ( Object . assign ( { } , this . state , { modalIsOpen : true } ) ) ;
17
17
} ,
18
18
19
19
closeModal : function ( ) {
20
- this . setState ( { ... this . state , modalIsOpen : false } ) ;
20
+ this . setState ( Object . assign ( { } , this . state , { modalIsOpen : false } ) ) ;
21
21
} ,
22
22
23
23
openSecondModal : function ( event ) {
24
24
event . preventDefault ( ) ;
25
- this . setState ( { ... this . state , modal2 :true } ) ;
25
+ this . setState ( Object . assign ( { } , this . state , { modal2 : true } ) ) ;
26
26
} ,
27
27
28
28
closeSecondModal : function ( ) {
29
- this . setState ( { ... this . state , modal2 :false } ) ;
29
+ this . setState ( Object . assign ( { } , this . state , { modal2 : false } ) ) ;
30
30
} ,
31
31
32
32
handleModalCloseRequest : function ( ) {
33
33
// opportunity to validate something and keep the modal open even if it
34
34
// requested to be closed
35
- this . setState ( { ... this . state , modalIsOpen : false } ) ;
35
+ this . setState ( Object . assign ( { } , this . state , { modalIsOpen : false } ) ) ;
36
36
} ,
37
37
38
38
handleInputChange : function ( ) {
You can’t perform that action at this time.
0 commit comments