Mercurial > wow > hansgar_and_franzok_assist
diff Libs/DF/addon.lua @ 20:dc1c77254f80
- added close button to users panel.
- framework update.
| author | Tercio |
|---|---|
| date | Tue, 11 Aug 2015 12:46:46 -0300 |
| parents | 680465749fc7 |
| children | 0682d738499b |
line wrap: on
line diff
--- a/Libs/DF/addon.lua Sat Jul 18 17:32:30 2015 -0300 +++ b/Libs/DF/addon.lua Tue Aug 11 12:46:46 2015 -0300 @@ -2,7 +2,7 @@ local DF = _G ["DetailsFramework"] local _ -if (not DF) then -- or not DetailsFrameWorkLoadValid +if (not DF or not DetailsFrameworkCanLoad) then return end @@ -30,7 +30,6 @@ end if (broker) then - local broker_click_function = broker.OnClick if (not broker_click_function and options_table) then broker_click_function = function() @@ -50,7 +49,10 @@ if (databroker and broker.Minimap and global_table.Minimap) then LibStub ("LibDBIcon-1.0"):Register (name, databroker, addon.db.profile.Minimap) end - + end + + if (addon.OnInit) then + xpcall (addon.OnInit, geterrorhandler(), addon) end end
