This AI is still in early stages of development.
Self Descriptor Object
- Aubergine
Owned by Aubergine
Define the filename and version of your script...
Object structure
The object is a simple JS object with two properties:
- file – the filename, including extension, as a string (eg.
"foo.js"
) - ver – the file version, as a number (eg.
1.2
)
Example
var self = { file: "foo.js", ver : 1.2 }
Availability
Requires:
- Util.js v0.8 or above
See Also
Related documentation:
- Tricks for including files — Some tricks with the include() function...
- Dependency Descriptor Object — Define one or more dependencies for your script...
- Check() — Perform a soft-check to see if a dependency is available...
- Check.basePath — The base path to the folder that contains the APIs folder...
- Check.paths[] — Define one or more folder paths to enable autoloading...
- Check.doWhen() — Perform a task when dependencies become available.
- Check.has() — Check if a dependency is available, try and load it if not, return availability state...
- Check.LAZY_LOAD — Disable autoloading during a dependency check...
- Check.required() — Thrown a descriptive error if dependency check fails...
- Check.NOT_LOADED — Indicates a script is not yet loaded, or must not be loaded, depending on the Check function being used...
- Check.ANY_VERSION — Skip version checking for a dependency check...
- Check.provide() — Indicate a file is now available.
- Check.versionOf() — Check the version of a dependency.
- Self Descriptor Object — Define the filename and version of your script...
You can also pass a self descriptor object in to uOut().