From 9377548630a5da6ad5b39921d715a0804ae73299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Mon, 20 Sep 2021 16:36:37 +0200 Subject: [PATCH] Don't require a non-null container MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/resizer/resizer.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/resizer/resizer.ts b/src/resizer/resizer.ts index 0db13e1af5..aa1fb09e0c 100644 --- a/src/resizer/resizer.ts +++ b/src/resizer/resizer.ts @@ -61,10 +61,6 @@ export default class Resizer { }, public readonly config?: C, ) { - if (!container) { - throw new Error("Resizer requires a non-null `container` arg"); - } - this.classNames = { handle: "resizer-handle", reverse: "resizer-reverse",