Quantcast

Fix improper use of "self" in a local function.

Johnny C. Lam [03-03-13 - 18:54]
Fix improper use of "self" in a local function.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@720 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
Ovale.lua
diff --git a/Ovale.lua b/Ovale.lua
index 3a3da19..8350763 100644
--- a/Ovale.lua
+++ b/Ovale.lua
@@ -165,14 +165,14 @@ end
 local function OnCheckBoxValueChanged(widget)
 	OvaleOptions:GetProfile().check[widget.userdata.k] = widget:GetValue()
 	if Ovale.casesACocher[widget.userdata.k].compile then
-		self:SendMessage("Ovale_CheckBoxValueChanged")
+		Ovale:SendMessage("Ovale_CheckBoxValueChanged")
 	end
 end

 local function OnDropDownValueChanged(widget)
 	OvaleOptions:GetProfile().list[widget.userdata.k] = widget.value
 	if Ovale.listes[widget.userdata.k].compile then
-		self:SendMessage("Ovale_ListValueChanged")
+		Ovale:SendMessage("Ovale_ListValueChanged")
 	end
 end