Skip to content

Pagecontainer: Clarify value of data.toPage during pagebeforechange #355

@gabrielschulhof

Description

@gabrielschulhof

pagebeforechange is normally fired twice - once with the URL to which we will browse, and the second time with the jQuery object containing the page representing the destination URL.

However, when pagebeforechange is triggered in response to a programmatic call to pagecontainer change(), where the URL was given as a jQuery object, then both pagebeforechange events contain a jQuery object.

Additionally we should refine the statement whereby

During the handling of this event the browser's history has not yet changed.

because pagebeforechange also fires in response to the Back button being clicked, in which case the history will have changed before the page change cycle even commences.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions