Modernizr: added autofocus support

This commit is contained in:
John Reilly
2013-11-01 15:37:25 +00:00
parent d922319a86
commit 351747995d
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -47,4 +47,8 @@ $(function () {
var elem;
Modernizr.hasEvent('gesturestart', elem);
if (!Modernizr.autofocus) {
$("[autofocus]").focus();
}
});
+1
View File
@@ -47,6 +47,7 @@ interface InputTypesboolean {
}
interface ModernizrStatic {
autofocus: boolean;
fontface: boolean;
backgroundsize: boolean;
borderimage: boolean;