Browse files

Merge pull request #61 from addyosmani/master

Address minor JS changes recommended by @jdalton
  • Loading branch information...
2 parents 52fe57c + 1e2d792 commit eaca6198fee76b98d2b0a1f2573f2b5306f446ff @paulirish paulirish committed Dec 29, 2011
Showing with 3 additions and 7 deletions.
  1. +3 −7 js/controller.js
View
10 js/controller.js
@@ -2,7 +2,7 @@
var doc = win.document,
docElem = doc.documentElement,
- head = doc.head || doc.getElementsByTagName( "head" )[0] || docElem,
+ head = doc.getElementsByTagName( "head" )[0] || docElem,
Modernizr = win.Modernizr;
// Supportin’ stuff.
@@ -81,12 +81,8 @@
lk.onload = respond.update;
}
- //might need to wait until DOMReady in IE...
- if( lastlink.nextSibling ){
- head.insertBefore(lk, lastlink.nextSibling );
- } else {
- head.appendChild( lk );
- }
+ head.insertBefore(lk, lastlink.nextSibling );
+
};
// Non-MQ browser, or in one of the two development modes? Exit here:

0 comments on commit eaca619

Please sign in to comment.