mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Modernizr: added autofocus support
This commit is contained in:
@@ -47,4 +47,8 @@ $(function () {
|
||||
|
||||
var elem;
|
||||
Modernizr.hasEvent('gesturestart', elem);
|
||||
|
||||
if (!Modernizr.autofocus) {
|
||||
$("[autofocus]").focus();
|
||||
}
|
||||
});
|
||||
|
||||
Vendored
+1
@@ -47,6 +47,7 @@ interface InputTypesboolean {
|
||||
}
|
||||
|
||||
interface ModernizrStatic {
|
||||
autofocus: boolean;
|
||||
fontface: boolean;
|
||||
backgroundsize: boolean;
|
||||
borderimage: boolean;
|
||||
|
||||
Reference in New Issue
Block a user