Class Index | File Index

Classes


Class orion.objects

Object-oriented helpers.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.core/web/orion/objects.js>.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
orion.objects.clone(object)
Creates a shallow clone of the given object.
<static>  
orion.objects.mixin(target, source)
Mixes all source's own enumerable properties into target.
<static>  
orion.objects.toArray(obj)
Wraps an object into an Array if necessary.
Class Detail
orion.objects()
Method Detail
<static> {Object|Array} orion.objects.clone(object)
Creates a shallow clone of the given object.
Parameters:
{Object|Array} object
The object to clone. Must be a "normal" Object or Array. Other built-ins, host objects, primitives, etc, will not work.
Returns:
{Object|Array} A clone of object.

<static> orion.objects.mixin(target, source)
Mixes all source's own enumerable properties into target. Multiple source objects can be passed as varargs.
Parameters:
{Object} target
{Object} source

<static> {Array} orion.objects.toArray(obj)
Wraps an object into an Array if necessary.
Parameters:
{Object} obj
An object.
Returns:
{Array} Returns obj unchanged, if obj is an Array. Otherwise returns a 1-element Array whose sole element is obj.

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Apr 04 2017 10:51:57 GMT-0400 (EDT)