Skip to content

add pageshow and pagehide#2701

Merged
arian merged 1 commit intomootools:masterfrom
SergioCrisostomo:pagehide_pageshow
Feb 12, 2015
Merged

add pageshow and pagehide#2701
arian merged 1 commit intomootools:masterfrom
SergioCrisostomo:pagehide_pageshow

Conversation

@SergioCrisostomo
Copy link
Member

fixes #2684

We could also add

if (type == 'pageshow' || type == 'pagehide'){
    this.persisted = event.persisted;
}

in DOMEvent.js, but since the original event is always accessible in e.event maybe no need?

@SergioCrisostomo SergioCrisostomo changed the title add pageshow and page hide add pageshow and pagehide Feb 12, 2015
arian pushed a commit that referenced this pull request Feb 12, 2015
@arian arian merged commit a1e68c7 into mootools:master Feb 12, 2015
@SergioCrisostomo SergioCrisostomo deleted the pagehide_pageshow branch February 12, 2015 23:10
@SergioCrisostomo SergioCrisostomo restored the pagehide_pageshow branch March 21, 2015 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

can't use window.addEvent on pageshow/pagehide events

2 participants