Don't require a non-null container

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-09-20 16:36:37 +02:00
parent 60e47c759d
commit 9377548630
No known key found for this signature in database
GPG Key ID: 55C211A1226CB17D
1 changed files with 0 additions and 4 deletions

View File

@ -61,10 +61,6 @@ export default class Resizer<C extends IConfig = IConfig> {
},
public readonly config?: C,
) {
if (!container) {
throw new Error("Resizer requires a non-null `container` arg");
}
this.classNames = {
handle: "resizer-handle",
reverse: "resizer-reverse",