woothemes/woocommerce — pull request #827 by GaryJones (2012-03-16 17:01:25+00:00)
Title: Hidden cart widget improvement

The JS code that hides the cart widget presumes that the `ul` with class `.hide_cart_widget_if_empty` is the immediate child of the root widget element.

This may not always be the case (Genesis child themes default to adding a `

` around the content inside the widget, for instance).

The pull request switches from using `parent()` to using `closest('widget')`.