Re: [caplet] ADsafe
- Douglas Crockford wrote:
> ADsafe does not allow definition of global variables or functions. ItWhy is the ADSAFE object not first-class ("var a = ADSAFE;" fails)?
> grants one capability, the ADSAFE object, through which other
> capabilities might be obtained. It does not allow access to any
> globals except for the ADSAFE object.
That doesn't seem to be necessary for security.
David Hopwood <david.hopwood@...>
- I updated the ADsafe DOM interface. Previously, a method like .getValue() could return
a single value
an array of values
depending on the number of results. Now, a method like .getValue() will return the first value that is available, or undefined if there are none. A new method, .getValues() will always return an array, possibly an empty array.