Opened 15 months ago

Closed 15 months ago

Last modified 14 months ago

#20131 closed defect (bug) (fixed)

Make proper use of the cached jQuery collection in Twenty Twelve's navigation.js

Reported by: mattwiebe Owned by:
Priority: normal Milestone:
Component: Bundled Theme Version:
Severity: normal Keywords: has-patch
Cc:

Description

The brand new navigation.js in twentytwelve fails to use the cached $("#masthead') jQuery collection properly. It's attempting to wrap an already cached jQuery collection inside a new jQuery object several times (which works, because jQuery anticipated this incorrect usage). This patch fixes that.

Or, OMG IAN YOU'RE DOING IT WRONG! :P

Attachments (1)

cached-selector.diff (1.6 KB) - added by mattwiebe 15 months ago.

Download all attachments as: .zip

Change History (7)

  • Milestone changed from Awaiting Review to 3.4

Or, OMG IAN YOU'RE DOING IT WRONG! :P

Not unusual. ;)

This is my new favorite ticket. It beats the heading ticket hands down.

I lol'd.

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

( In [20017] Twenty Twelve: make proper use of the cached jQuery collection in navigation.js, props mattwiebe. Fixes #20131. )

Heh. amusement is so much better when it's amusement at Ian's expense.

  • Milestone 3.4 deleted
Note: See TracTickets for help on using tickets.