Moved promise polyfill into boot logic

It's not specific to one single component
This commit is contained in:
Ingo Schommer 2016-10-20 21:30:12 +13:00
parent 54a4cef863
commit 3a690d8084
2 changed files with 3 additions and 3 deletions

View File

@ -17,6 +17,9 @@ import bootInjector from 'boot/BootInjector';
// eslint-disable-next-line no-unused-vars // eslint-disable-next-line no-unused-vars
import CampaignAdmin from 'containers/CampaignAdmin/controller'; import CampaignAdmin from 'containers/CampaignAdmin/controller';
import es6promise from 'es6-promise';
es6promise.polyfill();
function appBoot() { function appBoot() {
reducerRegister.add('config', ConfigReducer); reducerRegister.add('config', ConfigReducer);
reducerRegister.add('form', ReduxFormReducer); reducerRegister.add('form', ReduxFormReducer);

View File

@ -7,9 +7,6 @@ import * as schemaActions from 'state/schema/SchemaActions';
import Form from 'components/Form/Form'; import Form from 'components/Form/Form';
import FormBuilder, { basePropTypes, schemaPropType } from 'components/FormBuilder/FormBuilder'; import FormBuilder, { basePropTypes, schemaPropType } from 'components/FormBuilder/FormBuilder';
import es6promise from 'es6-promise';
es6promise.polyfill();
class FormBuilderLoader extends Component { class FormBuilderLoader extends Component {
constructor(props) { constructor(props) {