For BC/Live dual compatibility, I replaced line 40 with the following:
Code:
local oldandbusted = _G.GetBuildInfo() == '2.0.1'
if oldandbusted then
CreateFrame("Model", name .. "Cooldown", button, "CooldownFrameTemplate")
else
CreateFrame("Cooldown", name .. "Cooldown", button, "CooldownFrameTemplate")
end