View Single Post
04-21-09, 11:19 AM   #3
Luzzifus
A Warpwood Thunder Caller
 
Luzzifus's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2007
Posts: 94
Iterating through all units for every call doesn't look too efficient, does it?

There's something else crossing my mind given my global reference, how about this:

Code:
local v = _G['oUF_'..unit]
if v then oUF_Nivaya:UpdateNamePos(v, unit) end
It's still global but it would at least allow me to use the unit parameter.

**edit:
Btw. what's the exact difference between oUF.units, oUF.objects and oUF.elements?

Last edited by Luzzifus : 04-21-09 at 11:22 AM.
  Reply With Quote