Skip to content

Replace jQuery's $.proxy() with modern JavaScript alternatives#4348

Open
markvantilburg wants to merge 5 commits intokenwheeler:masterfrom
markvantilburg:master
Open

Replace jQuery's $.proxy() with modern JavaScript alternatives#4348
markvantilburg wants to merge 5 commits intokenwheeler:masterfrom
markvantilburg:master

Conversation

@markvantilburg
Copy link
Copy Markdown
Contributor

Replace 16 total instances of $.proxy():

10 instances → method.bind(context) (constructor method bindings) 6 instances → (e) => method(arg, e) (event handlers with arguments)

fixes: #4339

Replace 16 total instances of $.proxy():

10 instances → method.bind(context) (constructor method bindings)
6 instances → (e) => method(arg, e) (event handlers with arguments)

fixes: kenwheeler#4339
@markvantilburg markvantilburg marked this pull request as draft November 14, 2025 13:21
method dragHandler - is NOT DEFINED in the file
@markvantilburg markvantilburg marked this pull request as ready for review November 14, 2025 13:23
@markvantilburg
Copy link
Copy Markdown
Contributor Author

@ahmadalfy can you merge this?

I had to remove this since the method is not in the file
.dragHandler = $.proxy(.dragHandler, _);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

jQuery.proxy() is deprecated

1 participant