reactive-router 0.7.7 → 0.7.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/reactive-router/history.rb +3 -2
- data/lib/reactive-router/router.rb +0 -1
- data/lib/reactive-router/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4807bfc54a06c05e47632fce9506d66b40a39a4
|
4
|
+
data.tar.gz: d0556c0657b4c6445fc5de28c927a2a058081531
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dae94468405923b8cf973ad4ec006deb82030122170694f8449cb949b4656c624aa2b71b7100df09fc0d647a498c0b64750315d38c0cf026eb15d4b1a952af68
|
7
|
+
data.tar.gz: ad3033f9f71ee5fd01c1425fb1c3c9bd706e87c2b6a717fbd94159a5e24d1b3ce510c3401c578a5022953030f6378f829311004cf04f14dad44fc74fc7bf90c4
|
@@ -4,11 +4,12 @@ class History
|
|
4
4
|
|
5
5
|
def setup_handler
|
6
6
|
unless @handlers_setup
|
7
|
+
handler = lambda { |event| window_history_pop_handler(event) }
|
7
8
|
%x{
|
8
9
|
if (window.addEventListener) {
|
9
|
-
window.addEventListener('popstate',
|
10
|
+
window.addEventListener('popstate', handler, false);
|
10
11
|
} else {
|
11
|
-
window.attachEvent('onpopstate',
|
12
|
+
window.attachEvent('onpopstate', handler);
|
12
13
|
}
|
13
14
|
}
|
14
15
|
end
|
@@ -42,7 +42,6 @@ module React
|
|
42
42
|
query = opts.delete(:query) || {}
|
43
43
|
to = opts.delete(:to)
|
44
44
|
React::RenderingContext.render("a", opts, &block).on(:click) { transition_to(to, params, query) }
|
45
|
-
#React.create_element("a", opts, &block).on(:click) { transition_to(to, params, query) }
|
46
45
|
end
|
47
46
|
|
48
47
|
def url_param_evaluators
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reactive-router
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam George
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|