tur-nr / polymer-redux

Polymer bindings for Redux.
https://tur-nr.github.io/polymer-redux
MIT License
440 stars 67 forks source link

Fix listener fails when array value in state is undefined #14

Closed cvanleeuwen closed 8 years ago

cvanleeuwen commented 8 years ago

I found an issue in the calculation of splices; namely when a statePath points to redux state which is not (yet) defined, calling:

Polymer.ArraySplice.calculateSplices(undefined, previous);

will throw.