WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   oUF (Otravi Unit Frames) (https://www.wowinterface.com/forums/forumdisplay.php?f=87)
-   -   oUF events and elements (https://www.wowinterface.com/forums/showthread.php?t=53719)

Rainrider 06-15-16 04:46 AM

oUF events and elements
 
A lot of oUF elements use
lua Code:
  1. if (unit ~= self.unit) then return end
in their update function. Is there any benefit to it? I thought oUF's event dispatcher takes care about this and the frame only receives the events if the event fired for the appropriate unit, unless the event is unitless, but in that case the above check even hinders the update. Am I missing something here or this is just old code I'm looking at?


All times are GMT -6. The time now is 04:47 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI