Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

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

Code Block
themeRDark
languagejavascript
linenumberstrue
var self = {
	file: "foo.js",
	ver : 1.2
}
Div
classbox

Availability

Requires:

  • Util.js v0.8 or above
Div

See also

Functions that use self descriptor objects:

  • uNeed
  • uProvide
  • uOut() – output a message, optionally prefixed with file and version from self descriptor object

    Related documentation:

    Child pages (Children Display)
    alltrue
    depthall
    pageDependency Checking
    excerpttrue

    You can also pass a self descriptor object in to uOut().