Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Integrate matchMedia to get support for AddListener and RemoveListener. #109
Take advantage of response.js window.resize loop to add support for a media query list using regex based engine.
Initially wanted to add listener support to Paul's matchMedia.js . Tried a non-timer approach with among other things onpropertychanged / DOMAttrChanged, as well as the css3 transition end approach but realised fully xbrowser was going to need a timer. Didn't want to add another window.resize handler/timer and realised response.js was already:
i) using matchMedia.js
i) Moved matchMedia into response.js core, adding the AddListener and RemoveListener methods.