Appendix C. Atlas Reference

This Appendix is a reference to the methods and properties of the objects defined in the core Atlas script library (Atlas.js) and in its additional script libraries (such as AtlasUIDragDrop.js, AtlasUIGlitz.js, AtlasUIMap.js, and AtlasWebParts.js).

JavaScript Extensions

Atlas extends some standard JavaScript objects like strings and Booleans with additional methods.

Function Extensions

Method

Description

abstractMethod()

Dummy type for abstract methods

createCallback(method, context)

Creates a callback method and provides the context as parameter

createCallbackWithArguments(method, context)

Creates a callback method and uses additional parameters provided to the method

createDelegate(instance, method)

Creates a delegate

emptyMethod()

Dummy type for empty methods

getBaseMethod(instance, methodName)

Returns the method with the given name from the base object

getBaseType()

Returns the method’s base type

getName()

Returns the method name

parse(functionName)

Returns a reference to the function provided as string parameter

callBaseMethod(instance, methodName, baseArguments)

Calls the method with the given name from the base object, providing the arguments in the third parameter

implementsInterface(interfaceType)

Determines whether object implements the given interface or not

inheritsFrom(parentType)

Determines whether the object inherits from the given type or not

initializeBase(instance, ...

Get Programming Atlas now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.