function Icon.destroy(X)if X._destroyed then return end IconController.iconRemoved:Fire(X)X:clearNotices()if X._parentIcon then X:leave()end X:setDropdown()X:setMenu()X._destroyed=true X._maid:clean()end Icon.Destroy=Icon.destroy return Icon

function Icon:destroy()
	if self._destroyed then return end
	IconController.iconRemoved:Fire(self)
	self:clearNotices()
	if self._parentIcon then
		self:leave()
	end
	self:setDropdown()
	self:setMenu()
	self._destroyed = true
	self._maid:clean()
end
Icon.Destroy = Icon.destroy -- an alias for you maid-using Pascal lovers



return Icon
