From f208307cbdd403d3fa92a1aae1dc9c094c7ec9d8 Mon Sep 17 00:00:00 2001 From: Eric Bidelman Date: Wed, 11 Jul 2012 10:43:37 -0700 Subject: Bringing in upstream changes --- js/polyfills/matchMedia.js | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 js/polyfills/matchMedia.js (limited to 'js/polyfills/matchMedia.js') diff --git a/js/polyfills/matchMedia.js b/js/polyfills/matchMedia.js deleted file mode 100644 index 6d4d17c..0000000 --- a/js/polyfills/matchMedia.js +++ /dev/null @@ -1,30 +0,0 @@ -/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */ - -window.matchMedia = window.matchMedia || (function(doc, undefined){ - - var bool, - docElem = doc.documentElement, - refNode = docElem.firstElementChild || docElem.firstChild, - // fakeBody required for - fakeBody = doc.createElement('body'), - div = doc.createElement('div'); - - div.id = 'mq-test-1'; - div.style.cssText = "position:absolute;top:-100em"; - fakeBody.style.background = "none"; - fakeBody.appendChild(div); - - return function(q){ - - div.innerHTML = '­'; - - docElem.insertBefore(fakeBody, refNode); - bool = div.offsetWidth == 42; - docElem.removeChild(fakeBody); - - return { matches: bool, media: q }; - }; - -})(document); - - -- cgit v1.2.3