Enumerating with Ext.js
Categories: Javascript
One of the features of the prototype library that I like to use is the Enumerable class. Although highly debatable in regards to the legitimate necessity for such class, I like the simplicity and beauty of using Prototype’s enumerable class.
So, when using Ext as a base library (not using the Prototype adapter) for JavaScript DOM manipulation I looked into the enumeration methods available, such as Ext.each(). Here is a quick overview of how I used Ext.each to traverse members of a collection of HTML nodes. I decided to split this up into main topics; first I will talk about why I like to use the enumerable class, and then show you a simple example of using the Ext.each() method.
Read More
