Response title
This is preview!
.. isn't that pointless because $(this) is already a jQuery object $('ul')?
EDIT: Ok, this is strange... I just tested the jQuery Mobile site with my iPad again, and when zooming/rotating the behaviour is much less predictable. I was thinking that the jQuery Mobile guys had found the perfect JS solution to fixing the viewport scale bug.
<meta name="viewport" content="width=device-width, initial-scale=1">
- As soon as the user makes a gesture on the document, zooming is enabled again, so if you change the device orientation after that, the zoom bug will still occur.
- The user can only effectively start zooming after starting a second gesture.
Found via the child selector docs.Note: The$("> elem", context)
selector will be deprecated in a future release. Its usage is thus discouraged in lieu of using alternative selectors.
$('li:has(ul)',this)[($.fn.hoverIntent && !o.disableHI) ? 'hoverIntent' : 'hover'](over,out).each(function() { if (o.autoArrows) addArrow( $('>a:first-child',this) ); })
$()[](over, out)
© 2013 jQuery Foundation
Sponsored by and others.