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.
- checksums.yaml +4 -4
- data/lib/redux.rb +2 -2
- data/lib/redux/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 289d8f48a245a2b04fc86dddbd3749ddbd3a11761fc894bdfa1514f62c997a1f
|
4
|
+
data.tar.gz: dc5f4acc8a89029428e013948f938fc3075548c22cce79ead2bd64c77905a0fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2afb2f3395951b77af532605e9165a178f49f2df1d12e4f58b55cc66957e5f719009803978b63769cf9e372c67f4da5442ac7298b9b2b55ee4b48c497df618d
|
7
|
+
data.tar.gz: be7f34e9298e49cf3a788256425615a5e9ee16565b53fbe362c422f646120b6d9b4267171bcdd6a7db5cad1078f936b8d7a3bb15e7765a986f64a61f07225368
|
data/lib/redux.rb
CHANGED
@@ -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
|
43
|
-
return
|
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
|
data/lib/redux/version.rb
CHANGED