jquery/jquery — comment on commit 24e416dca36df4b182a612dba37f8b6cdaa25916
File:  line 0
By gnarf37:

@sebastien-p - Blocking in the sense that we can't actually remove the `data("events")` code until we evaluate where/why people are using it, and decide if we should be providing better alternatives.

`hasEvent` might be a use case we could provide support for, but I'm siding with @dmethvin here. I think there will always be a better alternative design than peeking at attached event handlers. This is evidenced by the fact that the pure DOM events have no similar method. **NOTE:** I still feel that the debugging clause has its uses, but you shouldn't ever need a `hasEvent` in production code.