Skip to content

Commit

Permalink
Fix core.element
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Feb 2, 2020
1 parent d3a5e93 commit b3dcb5f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/core/core.element.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ import {isNumber} from '../helpers/helpers.math';

class Element {

constructor(configuration) {
if (configuration) {
extend(this, configuration);
}
constructor(cfg) {
this.x = undefined;
this.y = undefined;
this.hidden = undefined;

// this.hidden = false; we assume Element has an attribute called hidden, but do not initialize to save memory
if (cfg) {
extend(this, cfg);
}
}

tooltipPosition() {
Expand Down

0 comments on commit b3dcb5f

Please sign in to comment.