Skip to content

Commit

Permalink
docs on hasEvent incorrect results. fixes Modernizr#322
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed May 6, 2012
1 parent 6d2e954 commit 31ca614
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,13 @@ window.Modernizr = (function( window, document, undefined ) {


/*>>hasevent*/
/**
* isEventSupported determines if a given element supports the given event
* function from yura.thinkweb2.com/isEventSupported/
*/
//
// isEventSupported determines if a given element supports the given event
// function from yura.thinkweb2.com/isEventSupported/
//
// The following results are known incorrects:
// Modernizr.hasEvent("webkitTransitionEnd", elem) // false negative
// ...
isEventSupported = (function() {

var TAGNAMES = {
Expand Down

0 comments on commit 31ca614

Please sign in to comment.