Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

autodividers style guide conformance

  • Loading branch information...
commit fd491ef7ccd1e5490549e5af2622a92ea49cbe20 1 parent ea22f39
@johnbender johnbender authored
Showing with 3 additions and 7 deletions.
  1. +3 −7 js/jquery.mobile.listview.autodividers.js
View
10 js/jquery.mobile.listview.autodividers.js
@@ -32,14 +32,10 @@ $( document ).on( "listviewcreate", "ul,ol", function() {
var replaceDividers = function () {
list.find( 'li:jqmData(role=list-divider)' ).remove();
- var lis = list.find( 'li' );
+ var lis = list.find( 'li' ),
+ lastDividerText = null, li, dividerText;
- var lastDividerText = null;
- var li;
- var dividerText;
- var i = 0;
-
- for ( i ; i < lis.length ; i++ ) {
+ for ( var i = 0; i < lis.length ; i++ ) {
li = lis[i];
dividerText = listview.options.autodividersSelector( $( li ) );
Please sign in to comment.
Something went wrong with that request. Please try again.