Skip to content
Permalink
Browse files

fix(store): Fixed that state has become null.

  • Loading branch information...
rymizuki committed Jul 2, 2016
1 parent e4e1d15 commit e5c971fb57d9360372888d1b1edc6a739f409a04
Showing with 3 additions and 3 deletions.
  1. +1 −1 dist/syntagme.js
  2. +1 −1 dist/syntagme.min.js
  3. +1 −1 src/syntagme/store.js
@@ -293,7 +293,7 @@ return /******/ (function(modules) { // webpackBootstrap
var state = this.reducers[i](payload, previous_state);
if (state) current_state = state;
}
if (this.state != current_state) {
if (current_state && this.state != current_state) {
this.state = current_state;
for (var _i = 0; _i < this.subscribers.length; _i++) {
this.subscribers[_i](current_state);

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -54,7 +54,7 @@ export default class Store {
let state = this.reducers[i](payload, previous_state)
if (state) current_state = state
}
if (this.state != current_state) {
if (current_state && this.state != current_state) {
this.state = current_state
for (let i = 0; i < this.subscribers.length; i++) {
this.subscribers[i](current_state)

0 comments on commit e5c971f

Please sign in to comment.
You can’t perform that action at this time.