Skip to content

Commit

Permalink
only flag html5 events as native for W3C_MODEL browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Jan 2, 2012
1 parent 073b21f commit 7365a71
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 27 deletions.
31 changes: 18 additions & 13 deletions bean.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,31 @@
hash[events[i]] = 1
return hash
})({}, (
'click dblclick mouseup mousedown contextmenu show ' + // mouse buttons
'click dblclick mouseup mousedown contextmenu ' + // mouse buttons
'mousewheel DOMMouseScroll ' + // mouse wheel
'mouseover mouseout mousemove selectstart selectend ' + // mouse movement
'keydown keypress keyup ' + // keyboard
'orientationchange ' + // mobile
'touchstart touchmove touchend touchcancel ' + // touch
'gesturestart gesturechange gestureend ' + // gesture
'focus blur change reset select submit input invalid ' + // form elements
'load unload beforeunload resize move DOMContentLoaded message ' + // window
'readystatechange pageshow pagehide popstate hashchange ' + // window
'offline online ' + // window
'focus blur change reset select submit ' + // form elements
'load unload beforeunload resize move DOMContentLoaded readystatechange ' + // window
'error abort scroll ' + // misc
'afterprint beforeprint ' + // printing
'dragstart dragenter dragover dragleave drag drop dragend ' + // dnd
'loadstart progress suspend emptied stalled loadmetadata ' + // media
'loadeddata canplay canplaythrough playing waiting seeking ' + // media
'seeked ended durationchange timeupdate play pause ratechange ' + // media
'volumechange cuechange ' + // media
'checking noupdate downloading cached updateready obsolete ' + // appacahe
'').split(' ')
(W3C_MODEL ? // element.fireEvent('onXYZ'... is not forgiving if we try to fire an event
// that doesn't actually exist, so make sure we only do these on newer browsers
'show ' + // mouse buttons
'input invalid ' + // form elements
'message readystatechange pageshow pagehide popstate ' + // window
'hashchange offline online ' + // window
'afterprint beforeprint ' + // printing
'dragstart dragenter dragover dragleave drag drop dragend ' + // dnd
'loadstart progress suspend emptied stalled loadmetadata ' + // media
'loadeddata canplay canplaythrough playing waiting seeking ' + // media
'seeked ended durationchange timeupdate play pause ratechange ' + // media
'volumechange cuechange ' + // media
'checking noupdate downloading cached updateready obsolete ' + // appcache
'' : '')
).split(' ')
)

, customEvents = (function () {
Expand Down
2 changes: 1 addition & 1 deletion bean.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7365a71

Please sign in to comment.