Pachelbel 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/project/Pachelbel.rb +2 -2
- 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: 70115604b402ca0d93b76151d2ba202cf01055cf
|
4
|
+
data.tar.gz: 4c5350bf04c86d5bb85c4d3dd956f77ca7d9e596
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e20dc7b0c60fc8c99a55b1e89eb8caa6bf2587e1eb37a87041163f867a355f0f2620c28c25a4e911d247662fa913f8598a1f67aaa2f59b3114debd18b6d8bd1
|
7
|
+
data.tar.gz: 569b7ee55f240db3a6bc7da55511427d10533e43f218bd9bd9e4dac2a59d8e9470fbdb5fc0231a3842b03c5990ce46ffce9f911e134f9fe38d42d0f03bd3a098
|
data/lib/project/Pachelbel.rb
CHANGED
@@ -7,7 +7,7 @@ module Pachelbel
|
|
7
7
|
'var audio_context = new AudioContext();' + 'var audio_nodes = [audio_context.destination];' + '</script>'
|
8
8
|
|
9
9
|
def on_ready(&block)
|
10
|
-
@on_ready.push block
|
10
|
+
@locked ? @on_ready.push(block) : block.call
|
11
11
|
end
|
12
12
|
|
13
13
|
def run_js(script)
|
@@ -39,7 +39,7 @@ module Pachelbel
|
|
39
39
|
when "let://freedom.ring"
|
40
40
|
@locked = false
|
41
41
|
@on_ready.each(&:call)
|
42
|
-
@on_ready
|
42
|
+
@on_ready = nil
|
43
43
|
return false
|
44
44
|
else
|
45
45
|
return true
|