Commit 4524d521 by Edgar HIPP

Add name to module

parent 109a1c19
...@@ -14,6 +14,7 @@ function getInner({part}) { ...@@ -14,6 +14,7 @@ function getInner({part}) {
class ImageModule { class ImageModule {
constructor(options) { constructor(options) {
this.name = "ImageModule";
this.options = options || {}; this.options = options || {};
if (this.options.centered == null) { this.options.centered = false; } if (this.options.centered == null) { this.options.centered = false; }
if (this.options.getImage == null) { throw new Error("You should pass getImage"); } 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