Skip to content

Commit

Permalink
Removal of enableNoClasses option, fixes: http://github.com/Modernizr…
Browse files Browse the repository at this point in the history
  • Loading branch information
KuraFire committed Jan 27, 2010
1 parent e3f5d30 commit 718bc69
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,6 @@ window.Modernizr = (function(window,doc,undefined){
*/
enableHTML5 = true,

/**
* enableNoClasses is a private property that, when enabled, will
* add classnames to the <html> element at all times, but prefixes
* failed groups with "no-", e.g. "no-cssanimations".
* This allows for very easy IF / ELSE style rules in your CSS. It
* can be disabled if these "no-classes" are not needed or desired.
*
* enableNoClasses is ON by default.
*/
enableNoClasses = true,


/**
* fontfaceCheckDelay is the ms delay before the @font-face test is
Expand Down Expand Up @@ -603,7 +592,7 @@ window.Modernizr = (function(window,doc,undefined){
// Run through all tests and detect their support in the current UA.
for ( feature in tests ) {
if ( tests.hasOwnProperty( feature ) ) {
classes.push( ( !( ret[ feature ] = tests[ feature ]() ) && enableNoClasses ? 'no-' : '' ) + feature );
classes.push( ( !( ret[ feature ] = tests[ feature ]() ) ? 'no-' : '' ) + feature );
}
}

Expand All @@ -621,7 +610,7 @@ window.Modernizr = (function(window,doc,undefined){
}
feature = feature.toLowerCase();
test = !!(test());
docElement.className += ' ' + (!test && enableNoClasses ? 'no-' : '') + feature;
docElement.className += ' ' + (!test ? 'no-' : '') + feature;
ret[ feature ] = test;
};

Expand Down Expand Up @@ -670,7 +659,6 @@ window.Modernizr = (function(window,doc,undefined){

// Assign private properties to the return object with prefix
ret._enableHTML5 = enableHTML5;
ret._enableNoClasses = enableNoClasses;
ret._version = version;

// Remove "no-js" class from <html> element, if it exists:
Expand Down

0 comments on commit 718bc69

Please sign in to comment.