The code is correct, it was just a way to show that catchall getters and setters could be used.
In any event, it's not useful now since ECMAScript 4 is dead and won't be implemented.
__________________
Nicholas C. Zakas
Author, Professional JavaScript for Web Developers (ISBN 0764579088)
http://www.nczonline.net/
|