Merge pull request #1213 from johnnyreilly/master

Modernizr: added autofocus support
This commit is contained in:
basarat
2013-11-01 16:27:00 -07:00
2 changed files with 5 additions and 0 deletions

View File

@@ -47,4 +47,8 @@ $(function () {
var elem;
Modernizr.hasEvent('gesturestart', elem);
if (!Modernizr.autofocus) {
$("[autofocus]").focus();
}
});

View File

@@ -47,6 +47,7 @@ interface InputTypesboolean {
}
interface ModernizrStatic {
autofocus: boolean;
fontface: boolean;
backgroundsize: boolean;
borderimage: boolean;