From 5e08d655f17aa3d8ad979782cdb9e110c6d0f523 Mon Sep 17 00:00:00 2001 From: Junle Date: Wed, 18 Jun 2014 16:46:16 +0800 Subject: [PATCH] Add definition and test for $.support.pjax property. --- jquery.pjax/jquery.pjax-tests.ts | 4 ++++ jquery.pjax/jquery.pjax.d.ts | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/jquery.pjax/jquery.pjax-tests.ts b/jquery.pjax/jquery.pjax-tests.ts index 796b4bf91..214bb3922 100644 --- a/jquery.pjax/jquery.pjax-tests.ts +++ b/jquery.pjax/jquery.pjax-tests.ts @@ -54,3 +54,7 @@ function test_defauluts() { version: $.noop }; } + +function test_support() { + console.log($.support.pjax); +} diff --git a/jquery.pjax/jquery.pjax.d.ts b/jquery.pjax/jquery.pjax.d.ts index 82ab34020..cb9ed59c2 100644 --- a/jquery.pjax/jquery.pjax.d.ts +++ b/jquery.pjax/jquery.pjax.d.ts @@ -131,3 +131,10 @@ interface PjaxStatic { */ reload(): JQueryXHR; } + +interface JQuerySupport { + /** + * A boolean value indicates if pjax is supported by the browser. + */ + pjax: boolean; +}