Each class defined by a library has a corresponding
object. Each object is a
function and serves as the constructor
for the class. Special behavior is defined, so that the function also
behaves as a container of static methods and enumeration values
defined by the class.
Besides serving as a constructor, this object contains two types of
members: static methods and enumeration values. Their names may be
listed by calling
names on the object. To access a member, use
$, which supports auto-completion, thanks to the
Namespaces within a library are also represented as
objects, even though they are not actually classes.
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.