new NestedCall(closure)
Nested call class.
Each enter method invocation increases the nesting level by 1.
Each leave method invocation decreases the nesting level by 1.
When nesting level reaches 0, the specified closure will be invoked.
Parameters:
Name | Type | Description |
---|---|---|
closure |
function | The closure function to be invoked. |
Members
closure :function
The closure function to be invoked.
Type:
- function
level :number
The current level.
Type:
- number
Methods
enter() → {number}
Enters nested block.
Returns:
The current level.
- Type
- number
leave() → {number}
Leaves nested block.
Returns:
The current level.
- Type
- number