Set a function to be run when a scope is exited.
Added in version 1.2.104
|funcRef||The function triggered when the key event is triggered.||Function||Required|
|scope||The type of scope this exit handler is associated with.||String||Optional||If no value is provided, the current scope is used. Returns false if the scope doesn't exist, true if the exit handler was successfully registered.|
/* This is an example of the WLEvent.onExitScope script API.
* Triggers an anonymous function when the current scope is exited.
Logger.debug("The scope was exited");