[wp-trac] [WordPress Trac] #20131: Make proper use of the cached jQuery collection in Twenty Twelve's navigation.js
WordPress Trac
wp-trac at lists.automattic.com
Tue Feb 28 05:03:21 UTC 2012
#20131: Make proper use of the cached jQuery collection in Twenty Twelve's
navigation.js
---------------------------+-----------------------------
Reporter: mattwiebe | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version:
Severity: normal | Keywords: has-patch
---------------------------+-----------------------------
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
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20131>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list