mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-29 18:06:01 +08:00
Add definition and test for $.support.pjax property.
This commit is contained in:
@@ -54,3 +54,7 @@ function test_defauluts() {
|
||||
version: $.noop
|
||||
};
|
||||
}
|
||||
|
||||
function test_support() {
|
||||
console.log($.support.pjax);
|
||||
}
|
||||
|
||||
7
jquery.pjax/jquery.pjax.d.ts
vendored
7
jquery.pjax/jquery.pjax.d.ts
vendored
@@ -131,3 +131,10 @@ interface PjaxStatic {
|
||||
*/
|
||||
reload(): JQueryXHR;
|
||||
}
|
||||
|
||||
interface JQuerySupport {
|
||||
/**
|
||||
* A boolean value indicates if pjax is supported by the browser.
|
||||
*/
|
||||
pjax: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user