diff --git a/modernizr.js b/modernizr.js index 2d52ff723c..e0ce815e9a 100644 --- a/modernizr.js +++ b/modernizr.js @@ -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(' '), @@ -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 ) {