Skip to content

Commit 285a7e6

Browse files
committed
misc fixes from catprint investigation
1 parent 3186de9 commit 285a7e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ruby/hyper-model/lib/reactive_record/interval.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,12 @@ def after!(time, &block)
168168
module Kernel
169169
# (see Browser::Window#after)
170170
def after(time, &block)
171-
`setTimeout(#{block.to_n}, time * 1000)`
171+
$window.after(time, &block)
172172
end
173173

174174
# (see Browser::Window#after!)
175175
def after!(time, &block)
176-
`setTimeout(#{block.to_n}, time * 1000)`
176+
$window.after!(time, &block)
177177
end
178178
end
179179

@@ -187,4 +187,4 @@ def after(time)
187187
def after!(time)
188188
$window.after!(time, &self)
189189
end
190-
end
190+
end

0 commit comments

Comments
 (0)