List with Thumbnails documentation - incorrect
In the documentation is written :
To add thumbnails to the left of a list item, simply add an image inside a list item as the
first child element
But what really happens is, that if the list item has at least one image (not just as a first child element) , the first image is used as a thumbnail and get the class "
ui-li-thumb"
, and the list item get the class "
ui-li-has-thumb"
From the jqueryMobile code:
item.find( "li" ).find( "img:eq(0)" ).addClass( "ui-li-thumb" ).each(function() {
$( this ).closest( "li" ) .addClass( $(this).is( ".ui-li-icon" ) ? "ui-li-has-icon" : "ui-li-has-thumb" ); });