Skip to content
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
@StevenBlack

Description

@StevenBlack

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions