O'Reilly logo

Programming Atlas by Christian Wenz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required