From ceccf507be95d48ac50b0fd2e0f0389831941664 Mon Sep 17 00:00:00 2001 From: Robert Brignull Date: Sun, 7 May 2017 21:30:16 +0100 Subject: Demos: Fix a typo with an extra semicolon Closes gh-1812 --- demos/effect/easing.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'demos') diff --git a/demos/effect/easing.html b/demos/effect/easing.html index b22c69580..4bee1c41f 100644 --- a/demos/effect/easing.html +++ b/demos/effect/easing.html @@ -34,7 +34,7 @@ canvas.width = width; canvas.height = height; var drawHeight = height * 0.8, - cradius = 10; + cradius = 10, ctx = canvas.getContext( "2d" ); ctx.fillStyle = "black"; -- cgit v1.2.3 From 809f29efa79c3c9aba95e6d7ffef41f567cda3a5 Mon Sep 17 00:00:00 2001 From: Scott González Date: Mon, 8 May 2017 11:52:58 -0400 Subject: All: Remove uses of `jQuery.proxy()` Ref #15160 Closes gh-1813 --- demos/autocomplete/combobox.html | 2 +- ui/widgets/autocomplete.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'demos') diff --git a/demos/autocomplete/combobox.html b/demos/autocomplete/combobox.html index 403c48550..32c69b97a 100644 --- a/demos/autocomplete/combobox.html +++ b/demos/autocomplete/combobox.html @@ -48,7 +48,7 @@ .autocomplete({ delay: 0, minLength: 0, - source: $.proxy( this, "_source" ) + source: this._source.bind( this ) }) .tooltip({ classes: { diff --git a/ui/widgets/autocomplete.js b/ui/widgets/autocomplete.js index c5bddc074..60d326544 100644 --- a/ui/widgets/autocomplete.js +++ b/ui/widgets/autocomplete.js @@ -447,7 +447,7 @@ $.widget( "ui.autocomplete", { _response: function() { var index = ++this.requestIndex; - return $.proxy( function( content ) { + return function( content ) { if ( index === this.requestIndex ) { this.__response( content ); } @@ -456,7 +456,7 @@ $.widget( "ui.autocomplete", { if ( !this.pending ) { this._removeClass( "ui-autocomplete-loading" ); } - }, this ); + }.bind( this ); }, __response: function( content ) { -- cgit v1.2.3