Add definition and test for $.support.pjax property.

This commit is contained in:
Junle
2014-06-18 16:46:16 +08:00
parent 0040e5a97e
commit 5e08d655f1
2 changed files with 11 additions and 0 deletions

View File

@@ -54,3 +54,7 @@ function test_defauluts() {
version: $.noop
};
}
function test_support() {
console.log($.support.pjax);
}

View File

@@ -131,3 +131,10 @@ interface PjaxStatic {
*/
reload(): JQueryXHR;
}
interface JQuerySupport {
/**
* A boolean value indicates if pjax is supported by the browser.
*/
pjax: boolean;
}