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.
jquery.mobile.listview.js Line 308 is an extensibility killer #1143
Closed
Description
Line 308 jquery.mobile.listview.js, which is in method _createSubPages, currently reads:
(305) var...
(307) title = $.trim(parent.contents()[ 0 ].nodeValue) || parent.find('a:first').text(),
(308) id = parentId + "&" + $.mobile.subPageUrlKey + "=" + self._idStringEscape(title + " " + i),
This hard-wires the url of any nested element we run through listview.refresh().
What's missing here is a way to opt-out of the variable assignment on L308, the id, so data-driven apps can add their own list elements, and nested list elements, and insert their own homegrown implementations that play nice with jQm's URL management.
Activity
scottjehl commentedon Mar 9, 2011
cool. care to propose a patch?
toddparker commentedon Sep 27, 2011
Added to the feature request wiki:
https://github.com/jquery/jquery-mobile/wiki/Feature-Requests