shawnmclean/Idle.js — pull request #18 by JustinTulloss (2014-12-31 21:32:41+00:00)
Title: Only attach 1 event listener for visibilitychange

Some browsers support multiple different names for the visibilitychange
event, this patch ensures that only one event will be listened to. It
prefers the specced 'visibilitychange', but falls back to prefixed
versions.

Also adds support for the 'moz' prefixed event.