Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //For handling:
- someBtn.observe('click', func.bindAsEventListener());
- func = function(e){ //Prototype's bindAsEventListener always passes the event object as the first parameter
- var srcElement = Event.element(e);
- };
Add Comment
Please, Sign In to add comment