jquery/jquery-mobile — Issue #3035: listview('refresh') does not update data-icon
Author: offsky
Created: 2011-11-12 18:17:17+00:00
State: open

If you use javascript to change the icon for a listview row, there is no way to refresh the list to cause the new icon to take effect. Calling listview('refresh') will not update the data-icon.

Example:
http://jsfiddle.net/HyL9n/2/

The example will show that listview('refresh') will work to add a new row, and it will work to update the count bubble, but it will not work to change the icon.