File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,9 @@ function M.atlas_loaded(name, atlas)
201
201
M .unload_atlas (previous_factory )
202
202
end
203
203
M .events .trigger (M .EVENTS .ATLAS_LOADED , {atlas = atlas , name = name })
204
- handle_callback (callbacks [name ], {atlas = atlas , name = name })
204
+ local clb = callbacks [name ]
205
+ callbacks [name ] = nil
206
+ handle_callback (clb , {atlas = atlas , name = name })
205
207
end
206
208
207
209
--- Called when atlas unloaded
@@ -210,7 +212,9 @@ function M.atlas_unloaded(name)
210
212
log (" Atlas unloaded: " .. tostring (name ))
211
213
loaded_atlases [name ] = nil
212
214
M .events .trigger (M .EVENTS .ATLAS_UNLOADED , {name = name })
213
- handle_callback (callbacks [name ], {name = name })
215
+ local clb = callbacks [name ]
216
+ callbacks [name ] = nil
217
+ handle_callback (clb , {name = name })
214
218
end
215
219
216
220
--- Check if atlas loaded
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ input_method = HiddenInputField
13
13
14
14
[project]
15
15
title = AtlasLoader
16
- version = 1.1.1
16
+ version = 1.1.2
17
17
dependencies#0 = https://github.com/andsve/dirtylarry/archive/refs/heads/master.zip
18
18
19
19
[library]
You can’t perform that action at this time.
0 commit comments