Skip to content

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

Open
markvantilburg wants to merge 6 commits into
kenwheeler:masterfrom
markvantilburg:master
Open

Replace jQuery's $.proxy() with modern JavaScript alternatives#4348
markvantilburg wants to merge 6 commits into
kenwheeler: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, _);

@ahmadalfy

Copy link
Copy Markdown
Collaborator

@markvantilburg what's the status of this? Do we need to merge it?

@markvantilburg

Copy link
Copy Markdown
Contributor Author

@ahmadalfy You should be able to merge this.

I could not split this on the website the .js change changes the .proxy.

The css changes remove "eot" fonts that are long time obsolete. And a fix in duplicate styles.

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

2 participants