All pastes #104613 Raw Edit

Someone

public text v1 · immutable
#104613 ·published 2006-07-29 01:47 UTC
rendered paste body
The following will result in an error in Dewdrop-2.0.lua at line 506.

Steps to reproduce:

Run the included code below and execute the slash command "/dewbug".
Collapse all levels of the dewdrop menu that opens.
Execute the slash command "/dewbug" again.






dewBug = AceLibrary("AceAddon-2.0"):new("AceConsole-2.0")

function dewBug:OnInitialize()
	self.dewdrop = AceLibrary("Dewdrop-2.0")
	
	local DewdropMenu = {
	  type= 'group',
	  args = {
		 Units = {
			name = "units",
			type = 'group',
			desc = "desc",
			args = {
			   player = {
				  name = "player", 
				  type = 'group',
				  desc = "player".." settings.",
				  args = {
					 FrameStyle = {
						name = "framestyle",
						type = 'text',
						desc = "desc",
						validate = {"1"},
						get = function()end,
						set = function()end,					
					 }
				  }
			   }
			}
		 }			
	  }
   }

	self.dewdrop:Register(UIParent, 'children', function() self.dewdrop:FeedAceOptionsTable(DewdropMenu) end)

	local SlashMenu = {
		name = "config",
		desc = "configdesc",
		type = 'execute',
		func = function()
			dewBug.dewdrop:Open(UIParent)
		end,
	}
	
	self:RegisterChatCommand({ "/dewbug" }, SlashMenu )
end