isomorfeus-preact 10.6.19 → 10.6.20

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
  SHA256:
3
- metadata.gz: dcabd6672c23dfd3a4eaf10b565b032522c1f0d352778e2d92366a24061b8d97
4
- data.tar.gz: 0bb1045aa576165352bf122f510eb3e94cffa6ea277008ab3a0c835502331e88
3
+ metadata.gz: 79141102f4c45c9264382de0ec926a8f9cce4606be4049d8662db3d713184eff
4
+ data.tar.gz: 3a8b5bcc189fcfcf40c31322ff85c48a9ae71e7d9f0833412429abe3886e06f2
5
5
  SHA512:
6
- metadata.gz: 2c478adf7ffcfab21bb7ba74ca6c109bdb4ec257ba830ba7bafbd91b1f12e2e50b427cf57dfd78b50570ca788630e539e1203ada466af987dcc23e5caf0aa9e9
7
- data.tar.gz: eb945769548e040115bca58246c94625dec9bb68e585bc1fd9268ebcc58c26d6894a72816d4d4ceea751e881a7933418bca067c867ea4e8ff92c342adffb30a5
6
+ metadata.gz: e2e5b8e8f24cb6e73120e6cdeb03e41cac9747e1758d13b3c928c75292b68b6ceec44912537848a72733befe6652f17798cb451920d206b3bd71d320fce07838
7
+ data.tar.gz: a179f9b3ed757eabfa1471521858845297df8fe53ac5aba16c9d94c5a7ed058b8fc3b48f42d96b9e2c8fd7506cf99389e649bf901782ce3c21c7a6029cff2e68
@@ -33,9 +33,10 @@ module LucidApp
33
33
  var defined_refs = #{base.defined_refs};
34
34
  for (var ref in defined_refs) {
35
35
  if (defined_refs[ref] != null) {
36
+ let r = ref; // to ensure cloure for function below gets correct ref name
36
37
  this[ref] = function(element) {
37
38
  element = oper.native_element_or_component_to_ruby(element);
38
- #{`this.__ruby_instance`.instance_exec(`element`, &`defined_refs[ref]`)}
39
+ #{`this.__ruby_instance`.instance_exec(`element`, &`defined_refs[r]`)}
39
40
  }
40
41
  this[ref] = this[ref].bind(this);
41
42
  } else {
@@ -29,9 +29,10 @@ module LucidComponent
29
29
  var defined_refs = base.$defined_refs();
30
30
  for (var ref in defined_refs) {
31
31
  if (defined_refs[ref] != null) {
32
+ let r = ref; // to ensure cloure for function below gets correct ref name
32
33
  this[ref] = function(element) {
33
34
  element = oper.native_element_or_component_to_ruby(element);
34
- #{`this.__ruby_instance`.instance_exec(`element`, &`defined_refs[ref]`)}
35
+ #{`this.__ruby_instance`.instance_exec(`element`, &`defined_refs[r]`)}
35
36
  }
36
37
  this[ref] = this[ref].bind(this);
37
38
  } else {
@@ -22,7 +22,7 @@ module Preact
22
22
  end
23
23
 
24
24
  def defined_refs
25
- @defined_ref ||= `{}`
25
+ @defined_refs ||= `{}`
26
26
  end
27
27
 
28
28
  def default_state_defined
@@ -19,9 +19,10 @@ module Preact
19
19
  var defined_refs = #{base.defined_refs};
20
20
  for (var ref in defined_refs) {
21
21
  if (defined_refs[ref] != null) {
22
+ let r = ref; // to ensure cloure for function below gets correct ref name
22
23
  this[ref] = function(element) {
23
24
  element = Opal.Preact.native_element_or_component_to_ruby(element);
24
- #{`this.__ruby_instance`.instance_exec(`element`, &`defined_refs[ref]`)}
25
+ #{`this.__ruby_instance`.instance_exec(`element`, &`defined_refs[r]`)}
25
26
  }
26
27
  this[ref] = this[ref].bind(this);
27
28
  } else {
@@ -1,3 +1,3 @@
1
1
  module Preact
2
- VERSION = '10.6.19'
2
+ VERSION = '10.6.20'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isomorfeus-preact
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.6.19
4
+ version: 10.6.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann