From 5ca25885a56cb21ad68553c2bcf429548ca5e587 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Sun, 13 Sep 2009 00:53:59 +0200 Subject: [PATCH] More cleanup, will it ever end? --- Broker_Equipment.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Broker_Equipment.lua b/Broker_Equipment.lua index 5ea2d2e..62ff91d 100644 --- a/Broker_Equipment.lua +++ b/Broker_Equipment.lua @@ -38,11 +38,7 @@ end local pending - local addon = CreateFrame('Frame', 'Broker_EquipmentMenu') -addon:RegisterEvent('ADDON_LOADED') -addon:SetScript('OnEvent', function(self, event, ...) self[event](self, event, ...) end) - local broker = LibStub('LibDataBroker-1.1'):NewDataObject('Broker_Equipment', { type = 'data source', iconCoords = {0.065, 0.935, 0.065, 0.935} @@ -212,3 +208,6 @@ function addon:UNIT_INVENTORY_CHANGED(event, unit) end end end + +addon:RegisterEvent('ADDON_LOADED') +addon:SetScript('OnEvent', function(self, event, ...) self[event](self, event, ...) end) -- 1.7.9.5