View Single Post
12-06-17, 01:21 PM   #2
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
Code:
ns:UpdateAuraIcon = function(element, button)
Isn't valid Lua, so that's why it didn't work. It should be:
Code:
ns.UpdateAuraIcon = function(element, button)
Notice the dot instead of semi-colon

Your new function definition works because:
Code:
function ns:UpdateAuraIcon(button)
Is the same as:
Code:
function ns.UpdateAuraIcon(ns, button)
__________________
「貴方は1人じゃないよ」
  Reply With Quote