View Single Post
09-21-14, 04:31 AM   #1
Pyrates
A Cliff Giant
 
Pyrates's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 77
Overwriting an element

Hi there!

I can add an element to ouf via

Lua Code:
  1. oUF:AddElement('RaidDebuffs', Update, Enable, Disable)

In an older version of ouf, I could simply call AddElement again to overwrite the element with another one. After an update (I'm not sure about the version numbers, I'm basing my stuff on Tukui Beta), there's an error message and I assume that the element wasn't overwritten.

What can I do here without modifying the original code, i.e. I can't remove the lua code that adds the element. Is there something like oUF:RemoveElement or the like?

Thanks for any pointers!
__________________
" ... and the Vogon will do things to you that you wish you'd never been born, or, if you're a clearer minded thinker, that the Vogon had never been born."
  Reply With Quote