mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
Rename closure variable to avoid shadowing a global/implicit var
This commit is contained in:
@ -375,9 +375,9 @@ function Totems.prototype:CreateTotem(i, name)
|
||||
self.graphicalOnLeave = function() GameTooltip:Hide() end
|
||||
end
|
||||
if not self.graphicalOnMouseUp then
|
||||
self.graphicalOnMouseUp = function (self, mouseButton)
|
||||
self.graphicalOnMouseUp = function (button, mouseButton)
|
||||
if mouseButton == "RightButton" then
|
||||
DestroyTotem(self.slot)
|
||||
DestroyTotem(button.slot)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user