sparkbox/mediaCheck — pull request #2 by pclifton (2013-02-25 23:28:43+00:00)
Title: Fix for https://github.com/sparkbox/mediaCheck/issues/1

As mentioned in this issue (and found by me today), in some older IE versions, window.mediaCheck exists but does not support addListener. (In particular I saw this with Compatibility View in IE9 and IE10) I modified the undefined check to not only check for the existence of matchMedia, but also that it supports addListener.