Class Index | File Index

Classes


Namespace R

The Render Engine namespace
Defined in: engine.intro.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
R
Field Summary
Field Attributes Field Name and Description
<static>  
R.global
The global namespace, typically the window object
<static>  
R.now
Return the current time in milliseconds.
Method Summary
Method Attributes Method Name and Description
<static>  
R.clone(obj)
Method for cloning objects which extend from R.engine.PooledObject.
<static>  
R.getClassForName(className)
Get the class for the given class name string.
<static>  
R.isArray(obj)
Check if the given object is an array
<static>  
R.isEmpty(obj)
Test if the object is undefined, null, or a string and is empty
<static>  
R.isFunction(obj)
Check if the given object is a function
<static>  
R.isNull(obj)
Check if the given object is null.
<static>  
R.isNumber(obj)
Check if the given object is a number
<static>  
R.isString(obj)
Check if the given object is a string
<static>  
R.isUndefined(obj)
Check if the given object is undefined.
<static>  
R.make(clazz, props)
Make a simplified class object.
<static>  
R.namespace(ns)
Declare a new namespace in R.
Namespace Detail
R
Field Detail
<static> R.global
The global namespace, typically the window object

<static> {Number} R.now
Return the current time in milliseconds.
Method Detail
<static> {Object} R.clone(obj)
Method for cloning objects which extend from R.engine.PooledObject. Other objects will return a clone of the object, but not classes.
Parameters:
obj
{Object} The object to clone
Returns:
{Object} A clone of the object

<static> {Class} R.getClassForName(className)
Get the class for the given class name string.
Parameters:
className
{String} The class name string
Throws:
ReferenceError if the class is invalid or unknown
Returns:
{Class} The class object for the given name

<static> {Boolean} R.isArray(obj)
Check if the given object is an array
Parameters:
obj
{Object} The object to test
Returns:
{Boolean}

<static> {Boolean} R.isEmpty(obj)
Test if the object is undefined, null, or a string and is empty
Parameters:
obj
{Object} The object to test
Returns:
{Boolean}

<static> {Boolean} R.isFunction(obj)
Check if the given object is a function
Parameters:
obj
{Object} The object to test
Returns:
{Boolean}

<static> {boolean} R.isNull(obj)
Check if the given object is null.
Parameters:
obj
{Object} The object to test
Returns:
{boolean}

<static> {Boolean} R.isNumber(obj)
Check if the given object is a number
Parameters:
obj
{Object} The object to test
Returns:
{Boolean}

<static> {Boolean} R.isString(obj)
Check if the given object is a string
Parameters:
obj
{Object} The object to test
Returns:
{Boolean}

<static> {boolean} R.isUndefined(obj)
Check if the given object is undefined. Cannot check properties of an object unless the object is known to be defined.
Parameters:
obj
{Object} The object to test
Returns:
{boolean}

<static> {Function} R.make(clazz, props)
Make a simplified class object.
Parameters:
clazz
{Object} Methods and fields to assign to the class prototype. A special method, "constructor" will be used as the constructor function for the class, or an empty constructor will be assigned.
props
{Object} Properties which are available on the object class. The format is [getterFn, setterFn]. If either is null, the corresponding property accessor method will not be assigned.
Returns:
{Function} A new

<static> R.namespace(ns)
Declare a new namespace in R.
Parameters:
ns
{String} The namespace to declare
Throws:
Throws an exception if the namespace is already declared

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Mar 18 2013 16:09:14 GMT-0400 (EDT)