Skip to content

Commit a0034e1

Browse files
committed
Remove single variable style declarations
1 parent d18dadb commit a0034e1

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/Modal.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ function getContainer(context){
3333

3434
/**
3535
* 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
3737
* @param {ReactElement|HTMLElement} context
3838
* @param {Function} handler
3939
*/
4040
function onFocus(context, handler) {
4141
let doc = domUtils.ownerDocument(context);
42-
let useFocusin = !doc.addEventListener
43-
, remove;
42+
let useFocusin = !doc.addEventListener;
43+
let remove;
4444

4545
if (useFocusin) {
4646
document.attachEvent('onfocusin', handler);
@@ -54,7 +54,7 @@ function onFocus(context, handler) {
5454

5555
let scrollbarSize;
5656

57-
if ( domUtils.canUseDom) {
57+
if (domUtils.canUseDom) {
5858
let scrollDiv = document.createElement('div');
5959

6060
scrollDiv.style.position = 'absolute';
@@ -286,8 +286,8 @@ const Modal = React.createClass({
286286
return;
287287
}
288288

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);
291291

292292
if (modal !== active && !domUtils.contains(modal, active)){
293293
modal.focus();
@@ -297,11 +297,11 @@ const Modal = React.createClass({
297297
_getStyles() {
298298
if ( !domUtils.canUseDom ) { return {}; }
299299

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);
305305

306306
return {
307307
dialogStyles: {

0 commit comments

Comments
 (0)