matthewhudson/device.js — pull request #4 by ESWAT (2013-03-21 18:49:03+00:00)
Title: addEventListener fallback for IE8

device.js doesn’t work in IE8 – and likely below – because it doesn’t know what addEventListener is. I added attachEvent and dumb function fallbacks if the browser doesn’t support addEventListener.