Add definition and test for $.pjax.reload method.

This commit is contained in:
Junle
2014-06-18 16:40:00 +08:00
parent 1912ed0334
commit 0af5dfd73b
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -37,3 +37,7 @@ function test_enable() {
function test_disable() {
$.pjax.disable();
}
function test_reload() {
$.pjax.reload();
}
+5
View File
@@ -120,4 +120,9 @@ interface PjaxStatic {
* This is the case when a browser doesn't support pushState. It is sometimes useful to disable pushState for debugging on a modern browser.
*/
disable(): void;
/**
* Reload current page with pjax.
*/
reload(): JQueryXHR;
}