PhpRiot
Download Article
Download this article or the entire “Eight Weeks of Prototype” series with all listings and files.




More information
Related Books
JavaScript: The Good Parts

JavaScript: The Good Parts

Most programming languages contain good and bad parts, but JavaScript has more than its share...

jQuery: Novice to Ninja

jQuery: Novice to Ninja

jQuery: Novice to Ninja is a compilation of best-practice jQuery solutions to meet the most...
PhpRiot Newsletter
Your Email Address:

More information

Eight Weeks of Prototype: Week 3, Prototype Data Types

Creating Custom Enumerables

It is possible to create your own enumerated objects simply by defining a function called _each() when you create your own classes. Because we have not yet covered how to create classes in Prototype yet, I will leave discussion of this until we do so in the sixth article of this series.

In This Article