Skip to content

Commit 29322d2

Browse files
committed
[squash] more naming bugfix
1 parent b34d9b6 commit 29322d2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/core/component.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ export abstract class Component {
2727
*/
2828
private readonly _container: Reactor;
2929

30-
protected _name: string;
31-
3230
/**
3331
* Create a new component and register it with the given container.
3432
* @param container The reactor that will contain the new component,
@@ -189,7 +187,7 @@ export abstract class Component {
189187
public _getName(): string {
190188
let name;
191189

192-
if (this instanceof Component) {
190+
if (this instanceof Reactor) {
193191
name = this._name;
194192
}
195193

src/core/reactor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ export abstract class Reactor extends Component {
487487
}
488488
};
489489

490-
protected _name: string;
490+
_name: string;
491491

492492
/**
493493
* Create a new reactor.

0 commit comments

Comments
 (0)