Quantcast
WoWInterface - View Single Post - [AceAddon-3.0] Module doesn't fire OnEnable/OnDisable function
View Single Post
12-27-17, 05:56 PM   #3
Layback_
An Onyxian Warder
Join Date: Feb 2016
Posts: 356
Hi briskman3000,

even if the function is called E:ACTIVE_TALENT_GROUP_CHANGED, since I'm manually calling it at L#28, this function would still run with an extra parameter named isOnInitialize.

Lua Code:
  1. self:ACTIVE_TALENT_GROUP_CHANGED(nil, nil, nil, true);

That being said, for the first time when the AceAddon-3.0 initializes its addon, E:ACTIVE_TALENT_GROUP_CHANGED would still run once with isOnInitialize flag being true even if the event is not fired. Otherwise, this function will only be called on ACTIVE_TALENT_GROUP_CHANGED event without isOnInitialize being set as you said

Last edited by Layback_ : 12-27-17 at 06:00 PM.
  Reply With Quote