Methods
add(id, space) → {Space}
Add a space.
Parameters:
Name | Type | Description |
---|---|---|
id | string | Identifier of space |
space | Space | Space to add |
Returns:
Space that was added.
- Type:
- Space
get(id) → {Space|null}
Get a space by its identifier.
Parameters:
Name | Type | Description |
---|---|---|
id | string | Identifier of space |
Returns:
Space with specified identifier, or null if it does not exist.
- Type:
- Space |
null
new(id, type)
Create and add a new space.
Parameters:
Name | Type | Description |
---|---|---|
id | string | Identifier of space |
type | Type of space |
open(id)
Open a space by its identifier.
Parameters:
Name | Type | Description |
---|---|---|
id | string | Identifier of space to open |
remove(id)
Remove a specific space.
Parameters:
Name | Type | Description |
---|---|---|
id | string | Identifier of space to remove |