Permalink
Browse files

removed an unused var or two, localized another.

  • Loading branch information...
1 parent 1a4c25f commit dd8113e94f2a8941cc55434a13d44c32e7cb7693 scottjehl committed Jan 16, 2012
Showing with 2 additions and 4 deletions.
  1. +1 −1 respond.min.js
  2. +1 −3 respond.src.js
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -46,8 +46,6 @@ window.matchMedia = window.matchMedia || (function(doc, undefined){
//define vars
var doc = win.document,
docElem = doc.documentElement,
- refNode = docElem.firstChild,
- fakeBody = doc.body || doc.createElement( "body" ),
mediastyles = [],
rules = [],
appendedEls = [],
@@ -175,7 +173,7 @@ window.matchMedia = window.matchMedia || (function(doc, undefined){
div.style.cssText = "position:absolute;font-size:1em;width:1em";
if( !body ){
- body = fakeUsed = fakeBody;
+ body = fakeUsed = doc.createElement( "body" );
}
body.appendChild( div );

0 comments on commit dd8113e

Please sign in to comment.