Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes for TWW 11.0.0 #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Poncho-2.0.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License
along with Poncho. If not, see <http://www.gnu.org/licenses/>.
--]]

local Lib = LibStub:NewLibrary('Poncho-2.0', 3)
local Lib = LibStub:NewLibrary('Poncho-2.0', 4)
if not Lib then return end

local setmetatable, getmetatable, tinsert, tremove, type = setmetatable, getmetatable, tinsert, tremove, type
Expand Down Expand Up @@ -179,9 +179,9 @@ Lib.__call = Lib.NewClass
Lib.Base, Lib.ClassMeta, Lib.SuperCall = Base, ClassMeta, SuperCall
Lib.Types = Lib.Types or {
Abstract = {},
Frame = getmetatable(GameMenuFrame).__index,
Button = getmetatable(GameMenuButtonContinue).__index,
Frame = (GameMenuFrame and getmetatable(GameMenuFrame) or GetFrameMetatable()).__index,
Button = (GameMenuButtonContinue and getmetatable(GameMenuButtonContinue) or GetButtonMetatable()).__index,
CheckButton = getmetatable(AddonListForceLoad).__index,
EditBox = getmetatable(ChatFrame1EditBox).__index,
EditBox = (ChatFrame1EditBox and getmetatable(ChatFrame1EditBox) or GetEditBoxMetatable()).__index,
GameTooltip = getmetatable(GameTooltip).__index,
}