#include "remoto!stdlib:js/include/objectRegistry.js"
◆ objectLoader()
◆ applyDefinition()
applyDefinition |
( |
|
path, |
|
|
|
data |
|
) |
| |
◆ applyValues()
applyValues |
( |
|
values, |
|
|
|
definition |
|
) |
| |
◆ destroy()
◆ fetchDefinition()
fetchDefinition |
( |
|
path, |
|
|
|
data, |
|
|
|
callback |
|
) |
| |
Read data from a VFS path, and apply the loaded contents to a JSON object as a diff.
- Parameters
-
path | The VFS path to load |
data | The data to be diffed by the contents of the loaded file |
callback | The callback to apply once this has completed. |
This is a mechanism for recursively loading json objects as classes and diffing them against each other. Using this, we can create something like an inheritance chain for json data.
◆ loadDefinition()
loadDefinition |
( |
|
path, |
|
|
|
data, |
|
|
|
callback |
|
) |
| |
Create an objectLoaderLoader for a requested path.
- Parameters
-
path | The path to laod |
data | The data that will be diffed |
callback | The callback to execute once the request is complete. |
If an objectLoaderLoader already exists for a given path, this callback and data will be enqueued in that loader.
◆ loadedDefinition()
loadedDefinition |
( |
|
path, |
|
|
|
data |
|
) |
| |
The documentation for this class was generated from the following file: