mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-13 12:37:16 +08:00
Merge pull request #1213 from johnnyreilly/master
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();
|
||||
}
|
||||
});
|
||||
|
||||
1
modernizr/modernizr.d.ts
vendored
1
modernizr/modernizr.d.ts
vendored
@@ -47,6 +47,7 @@ interface InputTypesboolean {
|
||||
}
|
||||
|
||||
interface ModernizrStatic {
|
||||
autofocus: boolean;
|
||||
fontface: boolean;
|
||||
backgroundsize: boolean;
|
||||
borderimage: boolean;
|
||||
|
||||
Reference in New Issue
Block a user