isomorfeus-redux 4.0.2 → 4.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/redux.rb +2 -2
  3. data/lib/redux/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d8fbf9d7852e4333e40b69e016672a37d536acbd582ca07e0e7edbd8ceb083d
4
- data.tar.gz: dbdd885ca61cfca3dd133f0976563c0ef701e6547b0d139bbcd4a53bbff767b2
3
+ metadata.gz: 289d8f48a245a2b04fc86dddbd3749ddbd3a11761fc894bdfa1514f62c997a1f
4
+ data.tar.gz: dc5f4acc8a89029428e013948f938fc3075548c22cce79ead2bd64c77905a0fd
5
5
  SHA512:
6
- metadata.gz: e1ed2a19ef97e4fc423346dfa07b5fbca45ad0015838d4077133eca0f4df2c98e8de97ae5d2ee3806da625d4e467768f396e6714b799dc8b4de87606a6b0c63f
7
- data.tar.gz: 2cf9a4468c7421e098294725010537a384dd3bbe680f6a49bbce1845b839f17cd064201633be863806ff9f1bd9cd8c7028959efee08c0db6cc3c0e38b6b905b6
6
+ metadata.gz: b2afb2f3395951b77af532605e9165a178f49f2df1d12e4f58b55cc66957e5f719009803978b63769cf9e372c67f4da5442ac7298b9b2b55ee4b48c497df618d
7
+ data.tar.gz: be7f34e9298e49cf3a788256425615a5e9ee16565b53fbe362c422f646120b6d9b4267171bcdd6a7db5cad1078f936b8d7a3bb15e7765a986f64a61f07225368
@@ -39,8 +39,8 @@ module Redux
39
39
  var previous_state_hash = Opal.Hash.$new(previous_state);
40
40
  var new_state_hash = block.$call(previous_state_hash, Opal.Hash.$new(action));
41
41
  if (previous_state_hash === new_state_hash) { return previous_state; }
42
- if (typeof new_state.$class === "function") { return new_state.$to_n(); }
43
- return new_state;
42
+ if (typeof new_state_hash.$class === "function") { return new_state_hash.$to_n(); }
43
+ return previous_state;
44
44
  });
45
45
  }
46
46
  end
@@ -1,3 +1,3 @@
1
1
  module Redux
2
- VERSION = '4.0.2'
2
+ VERSION = '4.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isomorfeus-redux
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.2
4
+ version: 4.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann