likadan 0.0.6 → 0.0.7

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: 89d2d8d420a5b4ff0aa9ba929c814f70d1857c29
4
- data.tar.gz: 834f1892de7b205fac29b293ef65c75c6e42c436
3
+ metadata.gz: c819c2e72385e0ced6484f460d9d6d3b823ac0e8
4
+ data.tar.gz: 28121b0f18c48c24aa9cb192f723fef7849ee10c
5
5
  SHA512:
6
- metadata.gz: 7cfdaaace27c25794a2f5fd4a959e758c3ca4dd6985de80f54de4fd0e6913e2044d8c5005974aa0b16c69c25d9e1c50f7bc8a0754c71fc2488e69cb1d18dd9da
7
- data.tar.gz: f9a2496c3456d48f313939cb1643215f9ac10f1a62799a077e00d0aba21fbb3eba2ca70c0d8fbee79ce78ea67cf9131f1ba3818a93d42825480676847873ed8c
6
+ metadata.gz: af7a48e0cbb10972164e7d5e13e0773464626db94f657ff2b4f5da4b9e6c571825c18c6f76987aded196538dc6809a0c7a3cfbc0c525190cb2810731d15620ae
7
+ data.tar.gz: 71c73c0bdacfc073d290f44cbd7422ecf2de86c9287ef4b60facd771e974f2f747fe2e3a39f57deb2ecfb6eafab34f7d5bfb7ad5ffd03e3f6faf18b980f5ab14
@@ -15,10 +15,16 @@ window.likadan = {
15
15
  });
16
16
  },
17
17
 
18
+ fdefine: function() {
19
+ this.defined = []; // clear out all previously added examples
20
+ this.define.apply(this, arguments); // add the example
21
+ this.define = function() {}; // make `define` a no-op from now on
22
+ },
23
+
18
24
  next: function() {
19
25
  if (this.currentRenderedElement) {
20
- if (React) {
21
- React.unmountComponentAtNode(document.body.lastChild);
26
+ if (window.React) {
27
+ window.React.unmountComponentAtNode(document.body.lastChild);
22
28
  } else {
23
29
  this.currentRenderedElement.parentNode.removeChild(this.currentRenderedElement);
24
30
  }
@@ -17,7 +17,7 @@
17
17
  href="/resource?file=<%= ERB::Util.url_encode(stylesheet) %>">
18
18
  <% end %>
19
19
  </head>
20
- <body style="margin: 0; background-color: #fff;">
20
+ <body style="background-color: #fff; margin: 0; pointer-events: none;">
21
21
  <script src="/likadan-runner.js"></script>
22
22
  <% @config['source_files'].each do |source_file| %>
23
23
  <script src="/resource?file=<%= ERB::Util.url_encode(source_file) %>"></script>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: likadan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henric Trotzig