Skip to content

Commit

Permalink
The addTest function didn't test for the variable 'enableClasses' and…
Browse files Browse the repository at this point in the history
… it should.
  • Loading branch information
leods92 committed Jul 19, 2011
1 parent 8d9a990 commit 074dbca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modernizr.js
Expand Up @@ -900,7 +900,7 @@ window.Modernizr = (function( window, document, undefined ) {

test = typeof test == "boolean" ? test : !!test();

docElement.className += ' ' + (test ? '' : 'no-') + feature;
if ( enableClasses ) docElement.className += ' ' + (test ? '' : 'no-') + feature;
Modernizr[feature] = test;

}
Expand Down

0 comments on commit 074dbca

Please sign in to comment.