[wp-trac] [WordPress Trac] #21562: Twenty Twelve: improve navigation to be mobile-first and not rely on jQuery for hiding and showing
WordPress Trac
wp-trac at lists.automattic.com
Sun Aug 26 18:40:26 UTC 2012
#21562: Twenty Twelve: improve navigation to be mobile-first and not rely on jQuery
for hiding and showing
---------------------------+---------------------------
Reporter: cfinke | Owner: lancewillett
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.5
Component: Bundled Theme | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch |
---------------------------+---------------------------
Comment (by azaozz):
Replying to [comment:39 lancewillett]:
> ...
> > function removeClass(element, name)
> > function addClass(element, name)
>
> I think that's probably overkill. Might as well just go back to using
jQuery methods at that point. :)
Right. These are generic replacements that would work well anywhere and
for any class. When this is only needed for a specific class, it can be
hard-coded and the code will be shorter.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21562#comment:43>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list