Skip to content
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
StevenBlack opened this issue Feb 24, 2011 · 2 comments
Closed

jquery.mobile.listview.js Line 308 is an extensibility killer #1143

StevenBlack opened this issue Feb 24, 2011 · 2 comments

Comments

@StevenBlack
Copy link
Contributor

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.

@scottjehl
Copy link

cool. care to propose a patch?

@toddparker
Copy link
Contributor

Added to the feature request wiki:
https://github.com/jquery/jquery-mobile/wiki/Feature-Requests

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants