Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Excerpt

Dependency checking functions generally require a "self descriptor" objectDefine 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
classbox

See

also

Functions that use self descriptor objects:

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

    Also

    Related documentation:

    Child pages (Children Display)
    alltrue
    depthall
    pageDependency Checking
    excerpttrue

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