Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Eeking out another 200+ msecs (on iPad) by simply switching to childr…

…en("img:eq0") instead of find(">img:eq0"). Still need to figure out how to get rid of the find(".ui-link-inherit>img:eq(0)") which is the where the bulk of listview enhancement is spent on WP7.
  • Loading branch information...
commit e17e29b559bee2860a6244cdecb7372167d9aa83 1 parent d194476
@jblas jblas authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  js/jquery.mobile.listview.js
View
2  js/jquery.mobile.listview.js
@@ -210,7 +210,7 @@ $.widget( "mobile.listview", $.mobile.widget, {
$( this ).closest( "li" ).addClass( "ui-li-has-count" );
}).addClass( "ui-btn-up-" + ( $list.jqmData( "counttheme" ) || this.options.countTheme) + " ui-btn-corner-all" );
- li.find( ">img:eq(0), .ui-link-inherit>img:eq(0)" ).addClass( "ui-li-thumb" ).each(function() {
+ li.find( ".ui-link-inherit>img:eq(0)" ).add( li.children( "img:eq(0)" ) ).addClass( "ui-li-thumb" ).each(function() {
var $this = $( this );
$this.closest( "li" ).addClass( $this.is( ".ui-li-icon" ) ? "ui-li-has-icon" : "ui-li-has-thumb" );
});
Please sign in to comment.
Something went wrong with that request. Please try again.