Extending Prototype
July 10th, 2006Here are two must-read articles on extending Prototype—here we go:
- Writing Custom Iterators For Prototype shows how to use the
addMethods
method of Prototype’sElement
object and the comments include a nice$w()
method akin to Ruby’s%w()
shortcut for creating arrays - The DOM Ready Extension for Prototype adds a nice
Event.onDOMReady()
method (also see this)
Nice to see this great stuff popping up everywhere—please don’t stop. 🙂
Plus, if you’re able to understand german, click here.
Tweet