I'm porting a Magento template over to Mootools, and i've run into a
little issue.

Prototype has a ".element()" function where you can select the element
that an event is attached to.

--------- example -------
initialize: function() {
        $$(elements).each(function(element){
                element.addEvent('blur', this.config.bind(this));
        });
},
config:function(event){
        //Here's your Prototype function
        var element = event.element();
        this.configureElement(element);
},
configureElement: function(element){
        alert('the id is' + element.get('id'));
}


So my question is, how do i select the element of which an event is
bound to in mootools?

Reply via email to