diff --git a/onmediaquery/onmediaquery.js b/onmediaquery/onmediaquery.js index 57c6ae4..74d3396 100644 --- a/onmediaquery/onmediaquery.js +++ b/onmediaquery/onmediaquery.js @@ -322,7 +322,7 @@ if (elem) { // return (IE browser?) ? (Return IE fontFamily) : ((W3C browser?) ? (Return W3C font-family) : Return empty string); - return (elem.currentStyle) ? elem.currentStyle['fontFamily'] : ((window.getComputedStyle) ? window.getComputedStyle(el).getPropertyValue('font-family') : ''); + return (elem.currentStyle) ? elem.currentStyle['fontFamily'] : ((window.getComputedStyle) ? window.getComputedStyle(elem).getPropertyValue('font-family') : ''); } @@ -351,4 +351,4 @@ return omq; // Expose the API. -}(window.oMQ = window.oMQ || {})); // Use existing namespace or make a new object of that namespace. \ No newline at end of file +}(window.oMQ = window.oMQ || {})); // Use existing namespace or make a new object of that namespace.