diff --git a/select2/select2-tests.ts b/select2/select2-tests.ts index d3a21b188e..b63d3cc1e7 100644 --- a/select2/select2-tests.ts +++ b/select2/select2-tests.ts @@ -56,6 +56,7 @@ $("#e6").select2({ ajax: { url: "http://api.rottentomatoes.com/api/public/v1.0/movies.json", dataType: 'jsonp', + cache: false, data: function (term, page) { return { q: term, @@ -195,4 +196,4 @@ $("#e8").select2("enable", false); $("#e8").select2("readonly", false); $("#e8").select2('container'); $("#e8").select2('onSortStart'); -$("#e8").select2('onSortEnd'); \ No newline at end of file +$("#e8").select2('onSortEnd'); diff --git a/select2/select2.d.ts b/select2/select2.d.ts index 0b4543596f..259dd16cf8 100644 --- a/select2/select2.d.ts +++ b/select2/select2.d.ts @@ -26,6 +26,7 @@ interface Select2AjaxOptions { url?: any; dataType?: string; quietMillis?: number; + cache?: boolean; data?: (term: string, page: number, context: any) => any; results?: (term: any, page: number, context: any) => any; }