From 95245a52a997cab6efee99f5580da01984468be4 Mon Sep 17 00:00:00 2001 From: AbraaoAlves Date: Fri, 22 Feb 2013 18:10:17 -0300 Subject: [PATCH 1/3] fix #320 bug ui.keyCode enum --- jqueryui/jqueryui.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jqueryui/jqueryui.d.ts b/jqueryui/jqueryui.d.ts index e64acce210..f4297377ed 100644 --- a/jqueryui/jqueryui.d.ts +++ b/jqueryui/jqueryui.d.ts @@ -741,7 +741,7 @@ interface UI { buttonset: Button; datepicker: Datepicker; dialog: Dialog; - keyCode: number; + keyCode: keyCode ; menu: Menu; progressbar: Progressbar; slider: Slider; From 3eff9e52312ca4f2961ef0927b631f772ecf1673 Mon Sep 17 00:00:00 2001 From: AbraaoAlves Date: Fri, 22 Feb 2013 18:15:05 -0300 Subject: [PATCH 2/3] define escapeRegex function https://github.com/jquery/jquery-ui/blob/master/ui/jquery.ui.autocomplete.js#L567 --- jqueryui/jqueryui.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/jqueryui/jqueryui.d.ts b/jqueryui/jqueryui.d.ts index f4297377ed..f3c9e7e42e 100644 --- a/jqueryui/jqueryui.d.ts +++ b/jqueryui/jqueryui.d.ts @@ -73,6 +73,7 @@ interface AutocompleteEvents { } interface Autocomplete extends Widget, AutocompleteOptions, AutocompleteEvents { + escapeRegex: (string) => string; } From faa2c274a5914640e7b954965e7a9e742617acb5 Mon Sep 17 00:00:00 2001 From: AbraaoAlves Date: Fri, 22 Feb 2013 18:17:59 -0300 Subject: [PATCH 3/3] removing undeclared variable --- jqueryui/jqueryui-tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jqueryui/jqueryui-tests.ts b/jqueryui/jqueryui-tests.ts index 22ce6488aa..bb77d14f1c 100644 --- a/jqueryui/jqueryui-tests.ts +++ b/jqueryui/jqueryui-tests.ts @@ -1138,7 +1138,7 @@ function test_datepicker() { $(".selector").datepicker({ dayNamesMin: ["Di", "Lu", "Ma", "Me", "Je", "Ve", "Sa"] }); $.datepicker.setDefaults($.datepicker.regional[""]); - $(selector).datepicker($.datepicker.regional["fr"]); + $(".selector").datepicker($.datepicker.regional["fr"]); }