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.

Add new pageremove event #2537

Closed
Closed
@kurteknikk

Description

@kurteknikk

Hi,

The page events: pagebeforeshow, pageshow, pagebeforehide, pagehide are very usefull in most cases but i think there's a missing event when you compare the pagecreate event with the above...

Because there's no pageremove event, which i think should be triggered when a page is removed from the dom.

The reason being that first of all i think it will be more logical, and secondly my use case is that i need to update the page contents even when its hidden if its still in the dom, so when i remove the page from the dom i want to have some extra logic to clear some stuff.

Activity

toddparker

toddparker commented on Sep 26, 2011

@toddparker
Contributor

Can you add this to the feature request wiki and close when done? Thanks!

ghost assigned on Sep 26, 2011
jblas

jblas commented on Sep 26, 2011

@jblas
Contributor

@kurteknikk

Yeah, makes a lot of sense!

kurteknikk

kurteknikk commented on Sep 27, 2011

@kurteknikk
Author

Added to the feature request wiki, thanks :)

kurteknikk

kurteknikk commented on Sep 28, 2011

@kurteknikk
Author

Sorry there was a misunderstanding, i closed the issue after i added it to the feature request wiki, i should have closed it when the issue is solved...

toddparker

toddparker commented on Sep 28, 2011

@toddparker
Contributor

Normally, we'd close issues once added to the feature request wiki page, but it sounds like @jblas is thinking about adding this now.

kurteknikk

kurteknikk commented on Sep 28, 2011

@kurteknikk
Author

Ok thanks for the info, also i agree with @jblas that its very important to be added before the first RC is released.

added a commit that references this issue on Sep 28, 2011

Added unit test for issue #2537 - Add new pageremove event.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @toddparker@jblas@kurteknikk

      Issue actions

        Add new pageremove event · Issue #2537 · jquery-archive/jquery-mobile