fix
This commit is contained in:
parent
64a2c2e33b
commit
42484e3f96
|
@ -264,10 +264,11 @@ func Reload() {
|
|||
safetyMaps.Flush()
|
||||
callsM.Flush()
|
||||
flushMapFn.Flush()
|
||||
slice.Sort(calls.Load(), func(i, j queue) bool {
|
||||
callll := calls.Load()
|
||||
slice.Sort(callll, func(i, j queue) bool {
|
||||
return i.order > j.order
|
||||
})
|
||||
for _, call := range calls.Load() {
|
||||
for _, call := range callll {
|
||||
call.fn()
|
||||
}
|
||||
return
|
||||
|
|
|
@ -118,7 +118,7 @@ func InitHandle(fn func(*Handle), h *Handle) {
|
|||
h.C.Set("inited", true)
|
||||
inited = true
|
||||
return *h
|
||||
})
|
||||
}, float64(-100))
|
||||
h.ginH = maps.Copy(hh.ginH)
|
||||
h.ginH["calPostClass"] = postClass(h)
|
||||
h.ginH["calBodyClass"] = bodyClass(h)
|
||||
|
|
Loading…
Reference in New Issue
Block a user