import {EventEmitter} from 'events'; import React from 'react'; import AppDispatcher from './app_dispatcher'; const COUNTER_CONST = { UPDATE_COUNTER: 'UPDATE_COUNTER' }; // Store let SINGLETON = Symbol(); let SINGLETON_ENFORCER = Symbol(); class CounterStoreSingleton extends EventEmitter { constructor(enforcer) { super(); if (enforcer !== SINGLETON_ENFORCER) { throw "Cannot construct singleton"; }
