This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
Crash when placing a listview inside an ul element #5696
Closed
Description
When a listview is placed inside an ul element jquery mobile 1.3 crashes on
if ( !listview.options.filter )
Since the listview object does not exists.
Test page: http://jsbin.com/ukewu3/318
Tested on Chrome, Opera. using jquery mobile 1.3 and latest with jquery 1.9.1.
Changing:
if ( !listview.options.filter ) {
return;
}
Into:
if ( !listview || !listview.options || !listview.options.filter ) {
return;
}
Appears to solve the problem.