diff --git a/polymer-redux.js b/polymer-redux.js index 58adc65..166c240 100644 --- a/polymer-redux.js +++ b/polymer-redux.js @@ -10,7 +10,7 @@ import {get} from '../@polymer/polymer/lib/utils/path.js'; * @param {Object} store Redux store. * @return {Function} Class mixin. */ -export default function PolymerRedux(store, mixinProperties = { enableStateChangedEvent: true }) { +export default function PolymerRedux(store) { if (!store) { throw new TypeError('PolymerRedux: expecting a redux store.'); } else if (!['getState', 'dispatch', 'subscribe'].every(k => typeof store[k] === 'function')) { @@ -70,11 +70,6 @@ export default function PolymerRedux(store, mixinProperties = { enableStateChang const unsubscribe = store.subscribe(() => { const detail = store.getState(); update(detail); - - if (mixinProperties.enableStateChangedEvent) { - element.dispatchEvent(new CustomEvent('state-changed', {detail})); - } - }); subscribers.set(element, unsubscribe);