Fix a glitch with `pop_preexecute_hook` (#124)

pull/126/head v0.5.2
Tom Short 2018-03-17 06:14:33 -04:00 committed by Matti Pastell
parent 53c2a337f3
commit 5e1d8c1976
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ end
#but note that Weave hooks take the chunk as input
const preexecute_hooks = Function[]
push_preexecute_hook(f::Function) = push!(preexecute_hooks, f)
pop_preexecute_hook(f::Function) = splice!(preexecute_hooks, findfirst(pretexecute_hooks, f))
pop_preexecute_hook(f::Function) = splice!(preexecute_hooks, findfirst(preexecute_hooks, f))
const postexecute_hooks = Function[]
push_postexecute_hook(f::Function) = push!(postexecute_hooks, f)