API UnregisterStateDriver

UnregisterStateDriver cancels a prior call to RegisterStateDriver for a given frame and stateid. UnregisterStateDriver(frame, state)

Arguments
frame


 * the frame which you wish to unregister the state driver from

state


 * String - an arbitrary identifier string for this conditional (coerced into lower case), or "visibility"

Returns
none

Examples
Registering a state driver to show a frame during combat:

local frame = CreateFrame("Frame") RegisterStateDriver(frame, "visibility", "[combat]show;hide"); -- the frame is now seen during combat

Removing the state driver: UnregisterStateDriver(frame, "visibility");  -- the frame no longer responds to entering/leaving combat