hyper-vis 1.0.0.lap29 → 1.0.0.lap30

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: 51ebf1dd7cffeef29a5c842de5ad6d3be75d1f1b18bdd512303b725ed8b4abe3
4
- data.tar.gz: 3a056f946d0425fa0f157dcfb540ca650cd6cfeb70c583908aeca3a082ee4077
3
+ metadata.gz: 7eb5eff15f82054481375b935135d9fa43680a9996385f54e53db7ad848bebf7
4
+ data.tar.gz: fae2fc15de0c8a4dc534c7243924e07fb68368ce07392a7c8911ddf7c970133e
5
5
  SHA512:
6
- metadata.gz: 8614266c5254f555bd5cce838fb0c86fdfb23b9ef51c6efd4be3543e28e9e94707e346fbf2a0de804d8d6e33231e2fda2dff2cd0c1ca50a1f9f095f37992d60f
7
- data.tar.gz: 8515cb2ee34ba375822451fdb57331bb77c3a9add6b1043ace4c48fab89856876038522c3d5555fef10585bc676eb9752949e36154aacfab7beee61bd498a19b
6
+ metadata.gz: 7a8db12d96b62a3076369336cd7c93ff650152aa8c7999b0aadfd406c71d2335be8d27adb2736a5fbfe7eb5adf6103453e4ef769946e6d78a5b3ea5a5829eb56
7
+ data.tar.gz: 13db992240ec099353a6e7879e2ee14e67921c78e4bab206f6e67b93253a793f89aa7ed8fd27eb795d61fb31c9051f6e5c02517e1d80503d47226ba33028bffd
@@ -1,5 +1,5 @@
1
1
  module Hyperloop
2
2
  module Vis
3
- VERSION = '1.0.0.lap29'
3
+ VERSION = '1.0.0.lap30'
4
4
  end
5
5
  end
data/lib/vis/utilities.rb CHANGED
@@ -151,7 +151,8 @@ module Vis
151
151
  if `typeof block === "function"`
152
152
  options[:manipulation][key] = %x{
153
153
  function(nodeData, callback) {
154
- return #{block.call(`Opal.Hash.$new(nodeData)`, `callback`)};
154
+ var wrapped_callback = #{ proc { |new_node_data| `callback(new_node_data.$to_n())` }}
155
+ return block.$call(Opal.Hash.$new(nodeData), wrapped_callback);
155
156
  }
156
157
  }
157
158
  end
@@ -164,7 +165,8 @@ module Vis
164
165
  if `typeof block === "function"`
165
166
  options[:manipulation][key] = %x{
166
167
  function(nodeData, callback) {
167
- return #{block.call(`Opal.Hash.$new(nodeData)`, `callback`)};
168
+ var wrapped_callback = #{ proc { |new_node_data| `callback(new_node_data.$to_n())` }}
169
+ return block.$call(Opal.Hash.$new(nodeData), wrapped_callback);
168
170
  }
169
171
  }
170
172
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyper-vis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.lap29
4
+ version: 1.0.0.lap30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-27 00:00:00.000000000 Z
11
+ date: 2018-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal