Since Array extends Object you get the Object interface for free. Don't use an Array as the base here but use Object. People have a tendency to misuse this feature of JS. Use an object literal or the long form like you wrote, except that you want to use new Object instead.

See Jude's reply as well.

erik

Reply

Name:

Email:

Subject:

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto:
are converted to links.