From 33e4c44a5eb88ee3170dfd117537beaa2c48d53e Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sun, 3 Jun 2018 11:11:19 +0900 Subject: [PATCH] Use default export --- scripts/Diff.ts | 2 +- scripts/MutationQueue.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Diff.ts b/scripts/Diff.ts index ce9e4552..8b1c5e84 100644 --- a/scripts/Diff.ts +++ b/scripts/Diff.ts @@ -1,4 +1,4 @@ -import { MutationQueue } from "./MutationQueue" +import MutationQueue from "./MutationQueue" export default class Diff { static persistentClasses = new Set() diff --git a/scripts/MutationQueue.ts b/scripts/MutationQueue.ts index e19cd190..60deed4e 100644 --- a/scripts/MutationQueue.ts +++ b/scripts/MutationQueue.ts @@ -8,7 +8,7 @@ const timeCapacity = 6.5 // MutationQueue queues up DOM mutations to batch execute them before a frame is rendered. // It checks the time used to process these mutations and if the time is over the // defined time capacity, it will pause and continue the mutations in the next frame. -export class MutationQueue { +export default class MutationQueue { mutations: Array<() => void> onClearCallBacks: Array<() => void>