API ScriptRegion GetScript

Returns the widget script handler.
 script = ScriptRegion:GetScript(scriptTypeName [, bindingType])
==Arguments==
:;scriptTypeName: - Name of the script type, for example "OnShow".
:;bindingType: - The intrinsic frame precall/postcall handler.
==Returns==
:;script: - The script handler, returns nil if none is set.
==Example==
Prints the OnShow script handlers from ChatFrame1.
print(ChatFrame1:GetScript("OnShow")) -- "function: 000001EB64BE3D20"
print(ChatFrame1:GetScript("OnShow", LE_SCRIPT_BINDING_TYPE_INTRINSIC_POSTCALL)) -- "function: 000001EB88AB5800"