Commit 4524d521 by Edgar HIPP

Add name to module

parent 109a1c19
......@@ -14,6 +14,7 @@ function getInner({part}) {
class ImageModule {
constructor(options) {
this.name = "ImageModule";
this.options = options || {};
if (this.options.centered == null) { this.options.centered = false; }
if (this.options.getImage == null) { throw new Error("You should pass getImage"); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment