7e6c1d4 - Detach indicators from protected frames
[wowui.git] / OmaRF / Core.lua
index d39b6e6..e0ecbd1 100644 (file)
@@ -1,8 +1,4 @@
-local unpack = unpack;
-local wipe = wipe;
-local next = next;
-local pairs = pairs;
-local ipairs = ipairs;
+local unpack, wipe, next, pairs, ipairs = unpack, wipe, next, pairs, ipairs;
 
 OmaRF = CreateFrame("Frame");
 
@@ -10,8 +6,6 @@ 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"
 };
@@ -57,17 +51,7 @@ end
 
 function OmaRF:OnDisable()
     self.running = false;
-    for name, frame in pairs(self.frames) do
-        for _, ind in pairs(frame) do
-            ind.text:Hide();
-            ind.icon:Hide();
-        end
-        for _, ind in ipairs(self.majorFrames[name]) do
-            ind.icon:Hide();
-            ind.expireText:Hide();
-            ind.stackText:Hide();
-        end
-    end
+    self.frameBase:Hide();
 end
 
 local function onEvent(self, event, ...)