Skip to content

Commit

Permalink
Let the popstate and hashchange events not bubble
Browse files Browse the repository at this point in the history
  • Loading branch information
tigercosmos committed Jun 17, 2018
1 parent 0c5b020 commit ecb6547
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/script/dom/history.rs
Expand Up @@ -129,7 +129,7 @@ impl History {
let event = HashChangeEvent::new(
&self.window,
atom!("hashchange"),
true,
false,
false,
old_url.into_string(),
url.into_string());
Expand Down
2 changes: 1 addition & 1 deletion components/script/dom/popstateevent.rs
Expand Up @@ -71,7 +71,7 @@ impl PopStateEvent {
pub fn dispatch_jsval(target: &EventTarget,
window: &Window,
state: HandleValue) {
let event = PopStateEvent::new(window, atom!("popstate"), true, false, state);
let event = PopStateEvent::new(window, atom!("popstate"), false, false, state);
event.upcast::<Event>().fire(target);
}
}
Expand Down

This file was deleted.

0 comments on commit ecb6547

Please sign in to comment.