Edit Mode Expanded

Edit Mode Expanded

662k Downloads

Code cleanup: wrapper for RepositionFrame

teelolws opened this issue ยท 0 comments

commented
    noInfinite = true
    lib:RepositionFrame(RuneFrame)
    noInfinite = false

Change this to something like

local noInfinite
function addon.ResetFrame(frame)
if noInfinite then return end
noInfinite = true
lib:RepositionFrame(frame)
noInfinite = false
end

then call that wrapper instead of having the noInfinites everywhere