Don't require a non-null container

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Š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

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",