From
https://github.com/tomrus88/Blizzard...merAugment.lua I'd guess the callback gets called with the right object to use cancel on. So this should work:
Lua Code:
local T = C_Timer.NewTicker(1, function(self)
if CUSTOMFRAME then
CUSTOMFRAME:HookScript("OnUpdate", function(self)
print("have it")
end)
self:Cancel()
end
end)