View Single Post
08/26/15, 03:14 PM   #1
Lodur
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 108
control:SetHandler ???

So I don't understand how this works:

Code:
  local fn = function() self:UpdateFilterLabel() end
  filterBar:SetHandler("OnValueChanged", fn)
  local fn_out = filterBar:GetHandler("OnValueChanged") 

  assert(fn_out ~= nil)
  assert(fn == fn_out)
Both assert will trigger. I.E fn_out is nil. But I just set it!!! Does SetHandler only take certain well know strings that are defined per control?
  Reply With Quote