I'm using the JQuery Mobile pages widget to display several form elements. one at a time. Each element uses a database query to display the current database value (if any) in the form upon load.
I have one element that utilizes Editable Listview. When the the database value is not empty, it displays just fine. But if the database value is empty, I get this error in the JS console:
Uncaught error: Cannot read property '0' of undefined
It points to line 161 in EditableListview:
// Re-enabling the click event handler when the list is in View mode
evt.click[0].handler = this._clickHandler;
evt.tap[0].handler = this._tapHandler;
Do you know what might be happening here, and how I might get around it?
Great plugin, by the way!