Skip to content

Commit

Permalink
minor. loop optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Feb 10, 2010
1 parent e6ffea3 commit 6cf5272
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modernizr-test.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en" dir="ltr" id="modernizr-1.1" class="no-js">
<head>
<!-- <meta http-equiv="X-UA-Compatible" content="IE=7" > -->
<title>Modernizr 1.0 Test Suite</title>
<title>Modernizr 1.2 Test Suite</title>
<style media="screen">
body {
font: 14px/18px Inconsolata;
Expand Down
2 changes: 1 addition & 1 deletion modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ window.Modernizr = (function(window,doc,undefined){
var elem = doc.createElement( canvas ),
contexts = [webgl, "experimental-"+webgl, "moz-"+webgl, "o-"+webgl, "webkit-3d", "3d"]; // this could probably use expansion.

for (var b = -1; ++b < contexts.length; ) {
for (var b = -1, len = contexts.length; ++b < len; ) {
try {
if (elem.getContext(contexts[b])) return true;
} catch(e){ }
Expand Down

0 comments on commit 6cf5272

Please sign in to comment.