Skip to content

Commit

Permalink
fix dynamic node creation in prod build
Browse files Browse the repository at this point in the history
  • Loading branch information
jberg committed Aug 16, 2019
1 parent 7220c88 commit 8e4de9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modern/src/runtime/MakiObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class MakiObject {
} else {
// When dynamically creating an object with `new` we have no underlying node
this.attributes = {};
this.name = this.constructor.name.toLowerCase();
this.name = this.getclassname().toLowerCase();
}
this.parent = parent;
this.js_annotations = annotations;
Expand Down Expand Up @@ -71,7 +71,7 @@ class MakiObject {
* @ret The class name.
*/
getclassname() {
return "Object";
return "MakiObject";
}

/**
Expand Down

1 comment on commit 8e4de9b

@captbaritone
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Please sign in to comment.