This project is archived and is in readonly mode.

#583 open
Aicke Schulz

Tips Improvement with focus/blur

Reported by Aicke Schulz | July 12th, 2011 @ 12:18 PM

How about extending the Tips class by binding the focus and blur event.

My suggestion is to make the events array which is used in the attach function an array in the options, with ['enter', 'leave'] as default value.
So its easier to override the events and extending the class with simple elementFocus and elementBlur funtions, which could be aliases to the elementEnter and elementLeave functions.

I know i can extend the Tips class for my own, and i already do (not in that case but another), but its alot easier when the events array is an option, and only requires 2 or 3 lines of extra code instead of writing a replacement function for "attach".

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The MooTools Extensions

People watching this ticket