Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #508 from keguira/patch-1

The addTest function didn't test for the variable 'enableClasses'
  • Loading branch information...
commit 94a690127904ed7d85679970257e76f3528b4b1c 2 parents 82e474b + 8fa980e
@paulirish paulirish authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 modernizr.js
View
4 modernizr.js
@@ -1003,7 +1003,9 @@ window.Modernizr = (function( window, document, undefined ) {
test = typeof test == 'function' ? test() : test;
- docElement.className += ' ' + (test ? '' : 'no-') + feature;
+ if (enableClasses) {
+ docElement.className += ' ' + (test ? '' : 'no-') + feature;
+ }
Modernizr[feature] = test;
}
Please sign in to comment.
Something went wrong with that request. Please try again.