|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
538 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | Copyright 2019 Google LLC
|
|---|
| 3 |
|
|---|
| 4 | Use of this source code is governed by an MIT-style
|
|---|
| 5 | license that can be found in the LICENSE file or at
|
|---|
| 6 | https://opensource.org/licenses/MIT.
|
|---|
| 7 | */
|
|---|
| 8 | import '../_version.js';
|
|---|
| 9 | /**
|
|---|
| 10 | * A minimal `Event` subclass shim.
|
|---|
| 11 | * This doesn't *actually* subclass `Event` because not all browsers support
|
|---|
| 12 | * constructable `EventTarget`, and using a real `Event` will error.
|
|---|
| 13 | * @private
|
|---|
| 14 | */
|
|---|
| 15 | export class WorkboxEvent {
|
|---|
| 16 | constructor(type, props) {
|
|---|
| 17 | this.type = type;
|
|---|
| 18 | Object.assign(this, props);
|
|---|
| 19 | }
|
|---|
| 20 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.