API:AccountBagFrame OnEvent

__NOTOC__
Called on every event of AccountBagFrame. This function has 2 roles: updating the AccountBagFrame or hiding it.
AccountBagFrame_OnEvent(this, event)
== Parameters ==
=== Arguments ===
:;this
::String - uses self frame name, "AccountBagFrame"
:;event
::String - One of these two events: "ACCOUNTBAG_UPDATE" and "ACCOUNTBAG_CLOSE"
=== Returns ===
:nil
== Example ==
AccountBagFrame_OnEvent("AccountBagFrame", "ACCOUNTBAG_UPDATE")
== Related Functions ==
* AccountBagFrame_OnLoad
* AccountBagFrame_OnShow
* AccountBagFrame_Update
== Source Code ==
function AccountBagFrame_OnEvent(this, event)
	if ( event == "ACCOUNTBAG_UPDATE" ) then
		ShowUIPanel(AccountBagFrame);
		AccountBagFrame_Update();
	elseif ( event == "ACCOUNTBAG_CLOSE" ) then
		HideUIPanel(AccountBagFrame);
	end
end
Category:Functions