alphagov/govuk_template — pull request #57 by edds (2014-02-07 11:06:31+00:00)
Title: Check for addEventListener

IE8 understands querySelectorAll but not addEventListener.

This block of javascript is needed for browsers the understand media
queries. As IE8 doesn't support media queries it doesn't need to run
this code so check for addEventListner also.

This fixes a JavaScript error users are currently seeing in IE8.