SecureHandlerUnwrapScript()
Jump to navigation
Jump to search
- This function is implemented in
FrameXML/SecureHandlers.lua
.
- This function is implemented in
Strips the outermost wrapper from a widget script.
header, preBody, postBody = SecureHandlerUnwrapScript(frame, script) header, preBody, postBody = SecureHandlerBaseTemplate:UnwrapScript(script)
Arguments
- frame
- Frame - Protected frame to remove the wrapper from.
- script
- string - One of the eligible widget script handlers (see SecureHandlerWrapScript).
Returns
- header
- header - The protected frame whose secure handle was to be passed to the code snippets as 'self'.
- preBody
- string - A code snippet limited to the RestrictedEnvironment, that was to fire before the frame's normal widget script.
- postBody
- string? - A second code snippet that was to fire afterwards.
See also
External links
- GitHub FrameXML, Gethe
- Globe "wut?" Tool, Townlong-Yak