View Single Post
06-15-16, 04:46 AM   #1
Rainrider
A Firelord
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 454
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?
  Reply With Quote