micmath/jsdoc — Issue #57: Properties on external/native objects added to global namespace 
Author: tstatler
Created: 2011-11-11 01:21:23+00:00
State: open

The following will correctly create an Array page with a dispatchChangeEvent() method.

```
/**
@external Array
*/

/**
@function external:Array.dispatchChangeEvent
*/
Object.defineProperty(Array.prototype, "dispatchChangeEvent", {value: false, enumerable: false});
```

But if you change @function to @property, the documented property is added to to the Global namespace in the HTML output.

```
/**
@external Array
*/

/**
@property external:Array.dispatchChangeEvent
*/
Object.defineProperty(Array.prototype, "dispatchChangeEvent", {value: false, enumerable: false});
```

Results: The Array page has no members.
Expected: The dispatchChangeEvent property is added to the Array page.