problem with event with arguments other than the unit #96

Closed
gagou opened this Issue Aug 19, 2011 · 1 comment

2 participants

@gagou

since the introduction of the new event handler there are some problem with events having arguments other than the unit if they are not defined in the sharedUnitEvents table of events.lua
PLAYER_TOTEM_UPDATE event is such an event (it have the totem index passed as an argument but not the unit so it should be defined in sharedUnitEvents)
I've also made a personal oUF plugin for mirror bars and MIRROR_TIMER_% events also have arguments but not the unit, so those events should be in sharedUnitEvents.

==> In my opinion custom elements should be able to add events to this table when they register this events

@haste
Owner

This is something which will be allowed. There's just a couple of things I need to make a decision on first.

@haste haste added a commit that closed this issue Oct 2, 2011
@haste events: Add a third argument to :RegisterEvent() to populate the "sha…
…rd" unit event table.

Fixes #96.
7df178a
@haste haste closed this in 7df178a Oct 2, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment