Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Fixed deprecated .focus() in hash.js #2301

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

sp00n
Copy link

@sp00n sp00n commented Jul 10, 2019

Replaced .focus() with .trigger("focus") in triggerFromUrl() in hash.js.
jQueryMigrate fires a JQMIGRATE: jQuery.fn.focus() event shorthand is deprecated warning for this line with jQuery 3.

As far as I can tell this was an oversight, all other occurrences have already been fixed to use .trigger() (despite the unluckily named .focus() methods of the Thumbs instance).

Replaced .focus() with .trigger("focus") in triggerFromUrl()
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant