Skip to content

Commit a67981b

Browse files
Update property.ts
1 parent 5b822e3 commit a67981b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/property.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ export class Property<T extends Any> {
5353

5454
private prevGetValue?: T;
5555

56-
private lastOrigin?: Any;
56+
private lastMeta?: Any;
5757

5858
constructor(device: Device, name: string, propertyDescr: PropertySchema) {
5959
this.device = device;
6060

6161
this.name = name;
6262

63-
this.lastOrigin = null;
63+
this.lastMeta = null;
6464

6565
// The propertyDescr argument used to be the 'type' string, so we add an
6666
// assertion here to notify anybody who has an older plugin.
@@ -194,14 +194,14 @@ export class Property<T extends Any> {
194194
* It is anticipated that this method will most likely be overridden
195195
* by a derived class.
196196
*/
197-
setValue(value: T, meta?: any): Promise<T> {
197+
setValue(value: T, meta?: Any): Promise<T> {
198198
return new Promise((resolve, reject) => {
199199
if (this.readOnly) {
200200
reject('Read-only property');
201201
return;
202202
}
203203

204-
this.lastOrigin = origin;
204+
this.lastMeta = meta;
205205
const numberValue = <number>(<unknown>value);
206206

207207
if (typeof this.minimum !== 'undefined' && numberValue < this.minimum) {

0 commit comments

Comments
 (0)