API ScriptObject GetScript

Returns the widget's script handler. handler = ScriptObject:GetScript(scriptType [, bindingType])

Arguments

 * scriptType : - Name of the script type, e.g. "OnShow".
 * bindingType : - Specifies an intrinsic frame's pre/post handler.

Returns

 * handler : - The script handler, or   if none is set.

Examples
print(ChatFrame1:GetScript("OnShow")) print(ChatFrame1:GetScript("OnShow", LE_SCRIPT_BINDING_TYPE_INTRINSIC_POSTCALL)) > "function: 000001EB64BE3D20" > "function: 000001EB88AB5800"