Blame view

lib/jsdom/living/events/PageTransitionEvent-impl.js 625 Bytes
858f2bdf5   Boyan Georgiev   fixes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  "use strict";
  
  const EventImpl = require("./Event-impl").implementation;
  
  const PageTransitionEventInit = require("../generated/PageTransitionEventInit");
  
  // https://html.spec.whatwg.org/multipage/browsing-the-web.html#pagetransitionevent
  class PageTransitionEventImpl extends EventImpl {
    initPageTransitionEvent(type, bubbles, cancelable, persisted) {
      if (this._dispatchFlag) {
        return;
      }
  
      this.initEvent(type, bubbles, cancelable);
      this.persisted = persisted;
    }
  }
  PageTransitionEventImpl.defaultInit = PageTransitionEventInit.convert(undefined);
  
  exports.implementation = PageTransitionEventImpl;