Mercurial > wow > reaction
diff State.lua @ 92:5f1d7a81317c
- Various bugfixes
- Switched action bar paging/mc fully to the _childupdate method
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Fri, 17 Oct 2008 22:43:57 +0000 |
parents | c2504a8b996c |
children | 168cae4aa8bd |
line wrap: on
line diff
--- a/State.lua Fri Oct 17 03:59:55 2008 +0000 +++ b/State.lua Fri Oct 17 22:43:57 2008 +0000 @@ -88,6 +88,9 @@ scale = true, } + local weak = { __mode = "k" } + local statedrivers = setmetatable( { }, weak ) + local keybinds = setmetatable( { }, weak ) -- -- Secure Handler Snippets @@ -144,10 +147,6 @@ end ]] .. onStateHandler - local weak = { __mode = "k" } - local statedrivers = setmetatable( { }, weak ) - local keybinds = setmetatable( { }, weak ) - -- Construct a lua assignment as a code string and execute it within the header -- frame's sandbox. 'value' must be a string, boolean, number, or nil. If called -- with four arguments, then it treats 'varname' as an existing global table and @@ -415,8 +414,10 @@ end function ShowAll( bar, show ) - SetHandlerData(bar, "showAll", show) - RefreshState(bar) + if statedrivers[bar] then + SetHandlerData(bar, "showAll", show) + RefreshState(bar) + end end end