Modernizr/Modernizr — pull request #1025 by swaydeng (2013-08-21 02:18:10+00:00)
Title: Code refactoring, made the function definition related to UA env

Code refactoring, made the function definition related to UA environment, `matchMedia` check only happened once. And some other slight modification for code execution efficiency.