jquery/jquery-mobile — pull request #5233 by scottjehl (2012-10-29 15:27:57+00:00)
Title: for internal review: updated our $.mobile.media function

updated our $.mobile.media function to use the matchMedia polyfill, which defers to the native function where possible. $.mobile.media still returns a boolean as it always has, but now, window.matchMedia is exposed in unsupporting environments too, which gives developers access to its standard API that returns an object, and in native implementations, supports listeners as well (a polyfill is available for that part too). This addresses issue #4979

Care to take a look, @johnbender ?