Skip to content

Commit 1b26cc8

Browse files
authored
fix: fixing issues with invoking class constructor without new (#7)
1 parent 9b3fd63 commit 1b26cc8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/Elements/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,4 +329,4 @@ class Elements extends Base {
329329
}
330330
}
331331

332-
module.exports = Elements();
332+
module.exports = new Elements();

lib/Entities/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ class Entities {
2828
}
2929
}
3030

31-
module.exports = Entities();
31+
module.exports = new Entities();

lib/Input/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,4 +354,4 @@ class Input extends Base {
354354
}
355355
}
356356

357-
module.exports = Input();
357+
module.exports = new Input();

0 commit comments

Comments
 (0)