benlenarts / Element.Type

Rapid abstraction of structure and development of behavior for MooTools
3 stars 0 forks source link

feature: element property 'type' #3

Open benlenarts opened 14 years ago

benlenarts commented 14 years ago

Imagine an element property 'type' that returns an instance of the most specific matching Element.Type, ie:

var Link = new Element.Type('a');
myAElement.get('type'); // returns a Link.Instance

This would be a nice addition, but I'm not sure it's really necessary.