File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,8 +49,9 @@ function onFocus(context, handler) {
4949 let useFocusin = ! doc . addEventListener ;
5050 let remove ;
5151
52- if ( currentFocusListener )
52+ if ( currentFocusListener ) {
5353 currentFocusListener . remove ( ) ;
54+ }
5455
5556 if ( useFocusin ) {
5657 document . attachEvent ( 'onfocusin' , handler ) ;
@@ -60,7 +61,7 @@ function onFocus(context, handler) {
6061 remove = ( ) => document . removeEventListener ( 'focus' , handler , true ) ;
6162 }
6263
63- currentFocusListener = { remove }
64+ currentFocusListener = { remove } ;
6465
6566 return currentFocusListener ;
6667}
@@ -298,7 +299,7 @@ const Modal = React.createClass({
298299 try {
299300 this . lastFocus = document . activeElement ;
300301 }
301- catch ( e ) { }
302+ catch ( e ) { } // eslint-disable-line no-empty
302303 }
303304 } ,
304305
Original file line number Diff line number Diff line change @@ -207,11 +207,11 @@ describe('Modal', function () {
207207 }
208208 } ) ;
209209
210- var instance = React . render ( < Container /> , focusableContainer ) ;
210+ let instance = React . render ( < Container /> , focusableContainer ) ;
211211
212212 setTimeout ( function ( ) {
213213 let input = React . findDOMNode (
214- ReactTestUtils . findRenderedDOMComponentWithTag ( instance , 'input' ) )
214+ ReactTestUtils . findRenderedDOMComponentWithTag ( instance , 'input' ) ) ;
215215
216216 document . activeElement . should . equal ( input ) ;
217217 done ( ) ;
You can’t perform that action at this time.
0 commit comments