Conversation
src/WidgetBase.ts
Outdated
export interface WidgetAndElementEvent extends EventTypedObject<'properties:changed'> { | ||
key: string; | ||
element: HTMLElement; | ||
export interface WidgetAndElementEvent<T extends EventType> extends EventObject<T> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't think this get used anymore?
src/WidgetBase.ts
Outdated
@@ -78,7 +78,7 @@ export class WidgetBase<P = WidgetProperties, C extends DNode = DNode> implement | |||
/** | |||
* Array of property keys considered changed from the previous set properties | |||
*/ | |||
private _changedPropertyKeys: string[] = []; | |||
private _changedPropertyKeys: (string | number)[] = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should just be string
, it is the actual key of the property on the properties object
src/WidgetBase.ts
Outdated
// Do nothing by default. | ||
} | ||
|
||
public get properties(): Readonly<P> & Readonly<WidgetProperties> { | ||
return this._properties; | ||
} | ||
|
||
public get changedPropertyKeys(): string[] { | ||
public get changedPropertyKeys(): (string | number)[] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As above, this should just be string[]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And all the other references to changedPropertyKeys
ad92183
to
1548cbb
Compare
Looks reasonable, just a conflict on |
7cdcc29
to
f15ebdb
Compare
0db68fb
to
22f1efa
Compare
22f1efa
to
b807584
Compare
Type: enhancement
The following has been addressed in the PR:
Description:
Relates to dojo/meta#210