- clear codes after adding a tag.

- wait 1 frame after the request to clear codes.
This commit is contained in:
ckknight
2008-03-28 22:02:56 +00:00
parent bca34b3d92
commit 9bfdf6cfca
4 changed files with 43 additions and 7 deletions

View File

@ -25,13 +25,13 @@ local getNamespaceList = DogTag.getNamespaceList
local memoizeTable = DogTag.memoizeTable
local kwargsToKwargTypes = DogTag.kwargsToKwargTypes
local fsNeedUpdate, fsNeedQuickUpdate, codeToFunction, codeToEventList, eventData, clearCodes
local clearCodes = DogTag.clearCodes
DogTag_funcs[#DogTag_funcs+1] = function()
fsNeedUpdate = DogTag.fsNeedUpdate
fsNeedQuickUpdate = DogTag.fsNeedQuickUpdate
codeToFunction = DogTag.codeToFunction
codeToEventList = DogTag.codeToEventList
eventData = DogTag.eventData
clearCodes = DogTag.clearCodes
end
local fsToFrame, fsToCode, fsToNSList, fsToKwargs, Tags, AddonFinders
@ -244,6 +244,7 @@ function DogTag:AddTag(namespace, tag, data)
end
end
del(data)
clearCodes(namespace)
end
local call__func, call__kwargs, call__code, call__nsList