Skip to content
kerrishotts edited this page Apr 1, 2013 · 1 revision

(part of UI)

Type: object

Returns the .major, .minor, and .rev version of the namespace. Though you should always use hit-testing to verify if a function is supported in any given version, this permits you the luxury of handling changes that may result within a function from version to version.

For example:

if (UI.somethingSupported)
{
    UI.somethingSupported();
}

if ( UI.version.major < 1 )
{
    // do this for pre-1.0 versions of a particular method
}

Version

0.3 Introduced; Docs Valid

Clone this wiki locally