SecureHandlerUnwrapScript()

From Warcraft Wiki
Jump to navigation Jump to search
This function is implemented in FrameXML/SecureHandlers.lua.

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?Optional. Could be nil. - A second code snippet that was to fire afterwards.

See also

External links