Appendix E. Scoping in JavaScript

This appendix provides details on the scoping rules for shared JavaScript control names.

JavaScript Scope of Name Attribute Values

A module is the object that a Main.html file defines. In general, name attributes are defined within the scope of the module that defines them, except for the special cases this section describes.

The following figure summarizes the rules of JavaScript name scope that prevent clashes between extensions in the GoLive environment:

JavaScript Scope of Name Attribute Values

Global namespace

  • In general, any object or function an extension module creates is visible only to that extension module, so its name attribute need only be unique ...

Get Adobe GoLive CS2 Official JavaScript Reference now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.