c6843f3 - Refactor updateIndicators to get auras when they're applied
[wowui.git] / OmaRF / Core.lua
index 34b4657..d39b6e6 100644 (file)
@@ -1,18 +1,21 @@
+local unpack = unpack;
+local wipe = wipe;
+local next = next;
+local pairs = pairs;
+local ipairs = ipairs;
+
 OmaRF = CreateFrame("Frame");
 
 OmaRF.normalBarColor = CreateColor(0.3, 0.3, 0.3);
 OmaRF.dispelBarColor = CreateColor(1, 0.5, 0);
 OmaRF.normalBackColor = {0.7, 0.7, 0.7};
 OmaRF.dispelBackColor = {0.5, 0.2, 0};
 OmaRF = CreateFrame("Frame");
 
 OmaRF.normalBarColor = CreateColor(0.3, 0.3, 0.3);
 OmaRF.dispelBarColor = CreateColor(1, 0.5, 0);
 OmaRF.normalBackColor = {0.7, 0.7, 0.7};
 OmaRF.dispelBackColor = {0.5, 0.2, 0};
-
 OmaRF.frames = {};
 OmaRF.majorFrames = {};
 OmaRF.positions = {
     "TOPLEFT", "TOPRIGHT", "CENTER", "BOTTOMLEFT", "BOTTOMRIGHT"
 };
 OmaRF.frames = {};
 OmaRF.majorFrames = {};
 OmaRF.positions = {
     "TOPLEFT", "TOPRIGHT", "CENTER", "BOTTOMLEFT", "BOTTOMRIGHT"
 };
-
 OmaRF.running = false;
 OmaRF.running = false;
-
 OmaRF.ooc_queue = {};
 
 local defaults = {
 OmaRF.ooc_queue = {};
 
 local defaults = {
@@ -61,8 +64,8 @@ function OmaRF:OnDisable()
         end
         for _, ind in ipairs(self.majorFrames[name]) do
             ind.icon:Hide();
         end
         for _, ind in ipairs(self.majorFrames[name]) do
             ind.icon:Hide();
-            ind.expire:Hide();
-            ind.stack:Hide();
+            ind.expireText:Hide();
+            ind.stackText:Hide();
         end
     end
 end
         end
     end
 end
@@ -70,7 +73,7 @@ end
 local function onEvent(self, event, ...)
     if event == "PLAYER_REGEN_ENABLED" then
         for _, t in pairs(self.ooc_queue) do
 local function onEvent(self, event, ...)
     if event == "PLAYER_REGEN_ENABLED" then
         for _, t in pairs(self.ooc_queue) do
-            t.func(t.args);
+            t.func(unpack(t.args));
         end
         if next(self.ooc_queue) ~= nil then
             wipe(self.ooc_queue);
         end
         if next(self.ooc_queue) ~= nil then
             wipe(self.ooc_queue);