chore: lint

This commit is contained in:
fragosti
2018-11-30 13:47:47 -08:00
parent 9ebe8d63c8
commit e47dd4a83e
3 changed files with 6 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
import * as React from 'react';
import { SlideAnimationState, StandardSlidingPanelContent, StandardSlidingPanelSettings } from '../types';
import { StandardSlidingPanelContent, StandardSlidingPanelSettings } from '../types';
import { InstallWalletPanelContent } from './install_wallet_panel_content';
import { SlidingPanel } from './sliding_panel';

View File

@@ -89,11 +89,10 @@ export const render = (config: ZeroExInstantConfig, selector: string = DEFAULT_Z
// If the integrator defined a popstate handler, save it to __zeroExInstantIntegratorsPopStateHandler
// unless we have already done so on a previous render.
const anyWindow = window as any;
if (window.onpopstate && !anyWindow.__zeroExInstantIntegratorsPopStateHandler) {
anyWindow.__zeroExInstantIntegratorsPopStateHandler = window.onpopstate.bind(window);
} else {
anyWindow.__zeroExInstantIntegratorsPopStateHandler = util.boundNoop;
}
const popStateExistsAndNotSetPreviously = window.onpopstate && !anyWindow.__zeroExInstantIntegratorsPopStateHandler;
anyWindow.__zeroExInstantIntegratorsPopStateHandler = popStateExistsAndNotSetPreviously
? anyWindow.onpopstate.bind(window)
: util.boundNoop;
const onPopStateHandler = (e: PopStateEvent) => {
anyWindow.__zeroExInstantIntegratorsPopStateHandler(e);
const newState = e.state;

View File

@@ -3,7 +3,7 @@ import * as _ from 'lodash';
import { Middleware } from 'redux';
import { ETH_DECIMALS } from '../constants';
import { Account, AccountState, StandardSlidingPanelContent } from '../types';
import { AccountState, StandardSlidingPanelContent } from '../types';
import { analytics } from '../util/analytics';
import { Action, ActionTypes } from './actions';