import { randomId } from './util';

const s = typeof Symbol === 'function';
export const vueFormConfig = s ? Symbol() : `VueFormProviderConfig${randomId}`;
export const vueFormState =  s ? Symbol() : `VueFormProviderState${randomId}`;

import { randomId } from './util';

export const vueFormConfig = `VueFormProviderConfig${randomId()}`;
export const vueFormState = `VueFormProviderState${randomId()}`;

Fix a bug when using symbols in iOS 8.1
Fix a bug when using symbols in iOS 8.1

For some reason, injecting objects with symbols as keys in Vue won’t work in iOS 8.1. To replicate this, simply create a <vue-form> and run it in the on iOS 8.1 or the iOS 8.1 simulator.
