haste/oUF — pull request #122 by Rainrider (2012-02-27 03:51:02+00:00)
Title: Hide class bars when in vehicle

Don't know if this is the best place or the best way to do it.

Also this would be an API change (?) as currently only the EclipseBar element is required to have :Show()/:Hide(). All the others could currently just be simple tables to hold their corresponding elements.

Blizzard code for this could be found in [PlayerFrame.lua](https://github.com/tekkub/wow-ui-source/blob/live/FrameXML/PlayerFrame.lua#L654)

Don't know whether it makes a difference using UnitHasVehiclePlayerFrameUI than UnitHasVehicleUI, but Blizz takes the former. As far as my testing did, both work the same way.