*Return shadow clone of data
This commit is contained in:
parent
47eba446b7
commit
3196947071
|
@ -33,7 +33,7 @@ export default class DHTOnlineBase extends EventEmitter {
|
|||
private _data: {};
|
||||
|
||||
get data(): {} {
|
||||
return this._data;
|
||||
return { ...this._data };
|
||||
}
|
||||
|
||||
set data(value: {}) {
|
||||
|
|
Loading…
Reference in New Issue