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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ccd41e19e04f5caf27a0789a81a15217356f8dee
4
- data.tar.gz: 23ffa894223c089f7d690e492e140c324f25baa7
3
+ metadata.gz: a4807bfc54a06c05e47632fce9506d66b40a39a4
4
+ data.tar.gz: d0556c0657b4c6445fc5de28c927a2a058081531
5
5
  SHA512:
6
- metadata.gz: cbc7f6a515e5a126039ae183a9fe559c132a4d048987f345b27a046ccb1498389d0772cc55baf6347c8cd7b3fd49af32dbcef9fa7c4689cd740b23469f76d475
7
- data.tar.gz: daeade2ed07dede1f019d9d3706a923d587dffee42d691ee8cd8d2a4644c3280c5bdb11d9a5ecb49ae711c11b0fa28d956125071b99d677d68d526247a4a610c
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', #{method(:window_history_pop_handler).to_n}, false);
10
+ window.addEventListener('popstate', handler, false);
10
11
  } else {
11
- window.attachEvent('onpopstate', #{method(:window_history_pop_handler).to_n});
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
@@ -1,3 +1,3 @@
1
1
  module ReactiveRouter
2
- VERSION = "0.7.7"
2
+ VERSION = "0.7.8"
3
3
  end
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.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-18 00:00:00.000000000 Z
11
+ date: 2015-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler