Skip to content

Commit ce893cf

Browse files
author
Gabriel Schulhof
committed
Listview: Add special item handlers to _elementsFromClassKey()
1 parent 7c894a1 commit ce893cf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

js/widgets/listview.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,15 @@ $.widget( "mobile.listview", $.extend( {
7373
switch( classKey ) {
7474
case "ui-listview":
7575
return this.element;
76+
7677
case "ui-listview-item":
7778
return this.element.children();
79+
80+
case "ui-listview-item-static":
81+
case "ui-listview-item-has-alt":
82+
case "ui-listview-item-divider":
83+
return this.element.children( "." + classKey );
84+
7885
default:
7986
return this._superApply( arguments );
8087
}

0 commit comments

Comments
 (0)