Skip to content

Commit

Permalink
fix: add titleChanged event
Browse files Browse the repository at this point in the history
  • Loading branch information
vcellu committed Jun 8, 2022
1 parent a50019b commit b435072
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/Element.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export class Element {
this.canvas = canvas;
this.panning = false;
this.eventEmitter = new EventEmitter();
this.panEventEmitter = new EventEmitter();
const size = canvas.getSize();
this.boundingRect = {};
this.setClientRect({x: 0, y: 0, ...size});
Expand Down Expand Up @@ -127,4 +126,8 @@ export class Element {
getJsxComponent() {
return this.jsxComponent;
}

title(value) {
this.eventEmitter.emit('titleChanged', value);
}
}

0 comments on commit b435072

Please sign in to comment.