View Single Post
08-03-08, 04:19 AM   #2
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view addons
Join Date: May 2008
Posts: 199
Code:
function CSB:Clique( spellButton)
is an alternative notation to
Code:
 function CSB.Clique (self, spellButton)
(Notice the colon and single dot)
If you call action(spellButton), the first parameter (self) would take the value of spellButton and the second would be empty.

Try to use:
Code:
action(CSB, spellButton)
This will pass CSB as the self-parameter and spellButton as the (correct) spellButton-parameter.

Hope, this helps
  Reply With Quote