Skip to content

Commit

Permalink
chrome was pissy with unused variables.. not sure why..
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Apr 22, 2010
1 parent 1d22d59 commit d87dd2b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,8 @@ window.Modernizr = (function(window,doc,undefined){
inputs = {},
attrs = {},

elems,
elem,
i,
feature,
classes = [],

/**
* isEventSupported determines if a given element supports the given event
* function from http://yura.thinkweb2.com/isEventSupported/
Expand Down Expand Up @@ -704,7 +700,7 @@ window.Modernizr = (function(window,doc,undefined){

// Run through all tests and detect their support in the current UA.
// todo: hypothetically we could be doing an array of tests and use a basic loop here.
for ( feature in tests ) {
for ( var feature in tests ) {
if ( tests.hasOwnProperty( feature ) ) {
// run the test, then based on the boolean, define an appropriate className
classes.push( ( !( ret[ feature ] = tests[ feature ]() ) ? 'no-' : '' ) + feature );
Expand Down

0 comments on commit d87dd2b

Please sign in to comment.