[wp-trac] [WordPress Trac] #18582: Remove unneeded siblings('.widget-holder') from widgets.js

WordPress Trac wp-trac at lists.automattic.com
Sat Sep 3 16:52:55 UTC 2011


#18582: Remove unneeded siblings('.widget-holder') from widgets.js
---------------------------+-----------------------------
 Reporter:  aaroncampbell  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Widgets        |    Version:  2.9
 Severity:  normal         |   Keywords:  has-patch
---------------------------+-----------------------------
 Currently we do this:
 `$(this).siblings('.widget-holder').parent().toggleClass('closed');`
 However, since the parent() of the current element is the same as the
 parent of it's siblings I don't think we need to move to a sibling at all.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18582>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list