@@ -33,14 +33,14 @@ function getContainer(context){
33
33
34
34
/**
35
35
* Firefox doesn't have a focusin event so using capture is easiest way to get bubbling
36
- * IE8 can't do addEventListener, but does have onfocus in , so we use that in ie8
36
+ * IE8 can't do addEventListener, but does have onfocusin , so we use that in ie8
37
37
* @param {ReactElement|HTMLElement } context
38
38
* @param {Function } handler
39
39
*/
40
40
function onFocus ( context , handler ) {
41
41
let doc = domUtils . ownerDocument ( context ) ;
42
- let useFocusin = ! doc . addEventListener
43
- , remove ;
42
+ let useFocusin = ! doc . addEventListener ;
43
+ let remove ;
44
44
45
45
if ( useFocusin ) {
46
46
document . attachEvent ( 'onfocusin' , handler ) ;
@@ -54,7 +54,7 @@ function onFocus(context, handler) {
54
54
55
55
let scrollbarSize ;
56
56
57
- if ( domUtils . canUseDom ) {
57
+ if ( domUtils . canUseDom ) {
58
58
let scrollDiv = document . createElement ( 'div' ) ;
59
59
60
60
scrollDiv . style . position = 'absolute' ;
@@ -286,8 +286,8 @@ const Modal = React.createClass({
286
286
return ;
287
287
}
288
288
289
- let active = domUtils . activeElement ( this )
290
- , modal = React . findDOMNode ( this . refs . modal ) ;
289
+ let active = domUtils . activeElement ( this ) ;
290
+ let modal = React . findDOMNode ( this . refs . modal ) ;
291
291
292
292
if ( modal !== active && ! domUtils . contains ( modal , active ) ) {
293
293
modal . focus ( ) ;
@@ -297,11 +297,11 @@ const Modal = React.createClass({
297
297
_getStyles ( ) {
298
298
if ( ! domUtils . canUseDom ) { return { } ; }
299
299
300
- let node = React . findDOMNode ( this . refs . modal )
301
- , scrollHt = node . scrollHeight
302
- , container = getContainer ( this )
303
- , containerIsOverflowing = this . _containerIsOverflowing
304
- , modalIsOverflowing = scrollHt > containerClientHeight ( container , this ) ;
300
+ let node = React . findDOMNode ( this . refs . modal ) ;
301
+ let scrollHt = node . scrollHeight ;
302
+ let container = getContainer ( this ) ;
303
+ let containerIsOverflowing = this . _containerIsOverflowing ;
304
+ let modalIsOverflowing = scrollHt > containerClientHeight ( container , this ) ;
305
305
306
306
return {
307
307
dialogStyles : {
0 commit comments