Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#23752 closed enhancement (fixed)

Update hoverIntent to r7

Reported by: joel_birch's profile joel_birch Owned by: ocean90's profile ocean90
Milestone: 3.6 Priority: normal
Severity: normal Version:
Component: External Libraries Keywords: has-patch
Focuses: Cc:

Description

I'd like to request that hoverIntent be updated to hoverIntent r7.

hoverIntent.js has just been updated to support event delegation whilst still being backward-compatible. My Superfish menu plugin requires this, meaning that when users set hoverIntent as a dependency they have to dequeue WordPress's version of hoverIntent and requeue the updated version, which is awkward, and their dropdown menus will not work at all without it.

Also, whatever WordPress uses hoverIntent for should benefit from using event delegation in future.

External library: https://github.com/briancherne/jquery-hoverIntent

Attachments (3)

hoverintentr7.diff (11.7 KB) - added by mjbanks 12 years ago.
upgrade hoverintent to r7, both full and minified version (via uglify)
hoverintent-r7-v2.diff (9.4 KB) - added by mjbanks 12 years ago.
upgrade hoverintent to r7, full version only
admin-bar-js.diff (2.6 KB) - added by mjbanks 12 years ago.

Download all attachments as: .zip

Change History (12)

#1 @SergeyBiryukov
12 years ago

  • Milestone changed from Awaiting Review to 3.6

@mjbanks
12 years ago

upgrade hoverintent to r7, both full and minified version (via uglify)

#2 @mjbanks
12 years ago

Added patch to update hoverintent to r7. This new version required jQuery 1.9.1+, which is what's being bundled with 3.6, so it runs with no problem (as long as people aren't using their own version of jQuery, which they shouldn't be anyway).

#3 follow-up: @mjbanks
12 years ago

  • Keywords has-patch added

Wasn't sure if I should add has-patch here or a Core maintainer does that (my first Core patch, be gentle).

#4 @markoheijnen
12 years ago

Minified version is not needed in the patch.

@mjbanks
12 years ago

upgrade hoverintent to r7, full version only

#5 @mjbanks
12 years ago

Added revised patch with only the full version

#6 in reply to: ↑ 3 @rmccue
12 years ago

Replying to mjbanks:

Wasn't sure if I should add has-patch here or a Core maintainer does that (my first Core patch, be gentle).

If you add a patch, you should add the has-patch keyword yourself. Most committers look at tickets with has-patch first so they can commit those. If it needs extra testing, add needs-testing, and if it needs someone else to look over it, add dev-feedback. Simple! :)

#7 follow-up: @ocean90
12 years ago

We should remove the minfied version at some time, see #21769.

@mjbanks:

Can you please update wp-includes/admin-bar,js too? It includes the minified version.

#8 in reply to: ↑ 7 @mjbanks
12 years ago

Replying to ocean90:

We should remove the minfied version at some time, see #21769.

@mjbanks:

Can you please update wp-includes/admin-bar,js too? It includes the minified version.

Sure thing! Updated and diff attached.

#9 @ocean90
12 years ago

  • Owner set to ocean90
  • Resolution set to fixed
  • Status changed from new to closed

In 24259:

hoverIntent r7. props mjbanks. fixes #23752.

Note: See TracTickets for help on using tickets.