paulirish/matchMedia.js — pull request #12 by benschwarz (2012-07-23 08:01:34+00:00)
Title: add/removeListener support w/ resize rather than setInterval

Merged @chuckharmston's changes, then paid respects to the changes that have occurred in canonical/master since—

# IWFM
* Changed from `setInterval` to `window.(on)resize` for event loop.
* Tests successfully under IE10, & 9.
* IE8 doesn't appear to match queries on resize when they should.

Review required.

+ @chuckharmston