Skip to content

Commit

Permalink
alphabetizing existing input attribute tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Taylor authored and Modernizr committed Dec 4, 2009
1 parent e210de1 commit 1be88de
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modernizr.js
Expand Up @@ -119,8 +119,8 @@ window.Modernizr = (function(window,doc){
sessionStorage = 'sessionstorage',
webWorkers = 'webworkers',
offline = 'offline',
inputPlaceholders = 'inputplaceholders',
inputAutofocus = 'inputautofocus',
inputPlaceholders = 'inputplaceholders',

// list of property values to set for css tests
setProperties = ' -o- -moz- -ms- -webkit- '.split(' '),
Expand Down Expand Up @@ -481,15 +481,15 @@ window.Modernizr = (function(window,doc){
tests[offline] = function() {
return !!window.applicationCache;
};

tests[inputAutofocus] = function() {
return 'autofocus' in f;
};

tests[inputPlaceholders] = function() {
return 'placeholder' in f;
};

tests[inputAutofocus] = function() {
return 'autofocus' in f;
};


// Run through all tests and detect their support in the current UA.
for ( feature in tests ) {
Expand Down

0 comments on commit 1be88de

Please sign in to comment.