|
|
|
@ -367,8 +367,6 @@ to `console.debug()`. Defaults to `false`.
|
|
|
|
|
|
|
|
|
|
|
|
#### `Perl.addStateChangeListener`
|
|
|
|
#### `Perl.addStateChangeListener`
|
|
|
|
|
|
|
|
|
|
|
|
**Added in `v0.05-beta`.**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Pass this function a `function (from,to) {...}` to register a new handler
|
|
|
|
Pass this function a `function (from,to) {...}` to register a new handler
|
|
|
|
for state changes of the Perl interpreter.
|
|
|
|
for state changes of the Perl interpreter.
|
|
|
|
|
|
|
|
|
|
|
|
@ -381,9 +379,11 @@ The states currently are:
|
|
|
|
- `"Ended"` - The Perl interpreter has ended. You might receive several
|
|
|
|
- `"Ended"` - The Perl interpreter has ended. You might receive several
|
|
|
|
state change notifications for this state.
|
|
|
|
state change notifications for this state.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This function was added in WebPerl `v0.05-beta`.
|
|
|
|
|
|
|
|
|
|
|
|
#### `Perl.stateChanged`
|
|
|
|
#### `Perl.stateChanged`
|
|
|
|
|
|
|
|
|
|
|
|
**Deprecated in `v0.05-beta`.** Use `Perl.addStateChangeListener` instead.
|
|
|
|
**Deprecated** in WebPerl `v0.05-beta`. Use `Perl.addStateChangeListener` instead.
|
|
|
|
|
|
|
|
|
|
|
|
Set this to a `function (from,to) {...}` to handle state changes of the Perl interpreter.
|
|
|
|
Set this to a `function (from,to) {...}` to handle state changes of the Perl interpreter.
|
|
|
|
Defaults to a simple implementation that logs via `console.debug()`.
|
|
|
|
Defaults to a simple implementation that logs via `console.debug()`.
|
|
|
|
|