Skip to content

Inconsistency in pagecreate / pageinit documentation #244

Closed
@globalmatt

Description

@globalmatt

According to http://api.jquerymobile.com/pageinit/ :

This event has been deprecated in 1.4.0 in favor of pagecreate. Simply replace pageinit in the above example.

However, these two events do not appear to be interchangeable, according to the docs at least.

http://api.jquerymobile.com/pageinit/ :

Triggered on the page being initialized, after initialization occurs.

http://api.jquerymobile.com/pagecreate/ :

Triggered when the page has been created in the DOM (via ajax or other) but before all widgets have had an opportunity to enhance the contained markup.

In other words, pageinit fires after all widget plugins have completed their markup enhancements, whereas pagecreate fires before (or during) the enhancement process.

That said, in my own testing in 1.4, pagecreate now appears to fire after all widgets have been enhanced, making it a direct replacement for pageinit. If that is true then the description at http://api.jquerymobile.com/pagecreate/ needs to be updated.

Metadata

Metadata

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