Fix Audio Data API test to detect API, not Audio element #721

Closed
wants to merge 3 commits into
from
@@ -1,4 +1,4 @@
// Mozilla Audio Data API
// https://wiki.mozilla.org/Audio_Data_API
// by Addy Osmani
-Modernizr.addTest('audiodata', !!(window.Audio));
+Modernizr.addTest('audiodata', !!(window.Audio && (new window.Audio()).mozSetup));