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 +4 -4
- data/lib/public/likadan-runner.js +8 -2
- data/lib/views/index.erb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c819c2e72385e0ced6484f460d9d6d3b823ac0e8
|
4
|
+
data.tar.gz: 28121b0f18c48c24aa9cb192f723fef7849ee10c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
}
|
data/lib/views/index.erb
CHANGED
@@ -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;
|
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>
|