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
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.

Activity

scottjehl

scottjehl commented on Mar 9, 2011

@scottjehl

cool. care to propose a patch?

toddparker

toddparker commented on Sep 27, 2011

@toddparker
Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @StevenBlack@scottjehl@toddparker

        Issue actions

          jquery.mobile.listview.js Line 308 is an extensibility killer · Issue #1143 · jquery-archive/jquery-mobile