Observable.hasEvent()
January 5th, 2009Just wondering if it would be useful to have a hasEvent() method on Observable to allow code to inspect a field's valid events.
For me I have some generic code that attachs event handlers to a field. Some events like keyup/keydown are on the underlying element of a field rather than the field itself so I have to hardcode these in as a corner case. If there was a hasEvent() on a field then I could do a check on the field and if it returned false than try the element.
Cheers.
Mike.
#If you have any other info about this subject , Please add it free.# |