function Icon.destroy(d)if d._destroyed then return end IconController.iconRemoved:Fire(d)d:clearNotices()if d._parentIcon then d:leave()end d:setDropdown()d:setMenu()d._destroyed=true d._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



return Icon
