Permalink
Browse files

Merge pull request #635 from travisp/patch-1

Add check to verify that enableClasses has been initialized.
  • Loading branch information...
paulirish committed Jul 19, 2012
2 parents acf9a8b + 39fc8fa commit 09419097e2f320105f157f9a08c494149b566622
Showing with 1 addition and 1 deletion.
  1. +1 −1 modernizr.js
View
@@ -979,7 +979,7 @@ window.Modernizr = (function( window, document, undefined ) {
test = typeof test == 'function' ? test() : test;
- if (enableClasses) {
+ if (typeof enableClasses !== "undefined" && enableClasses) {
docElement.className += ' ' + (test ? '' : 'no-') + feature;
}
Modernizr[feature] = test;

0 comments on commit 0941909

Please sign in to comment.