Commit f8138072 authored by Dorchies David's avatar Dorchies David
Browse files

lint

Showing with 10 additions and 5 deletions
+10 -5
......@@ -74,7 +74,9 @@ export class Props implements IObservable {
public clone(): Props {
const res = new Props();
for (const k in this._props) {
res._props[k] = this._props[k];
if (this._props.hasOwnProperty(k)) {
res._props[k] = this._props[k];
}
}
return res;
}
......@@ -82,12 +84,14 @@ export class Props implements IObservable {
public toString(): string {
let res = "[";
for (const k in this._props) {
if (res !== "[") {
res += ", ";
if (this._props.hasOwnProperty(k)) {
if (res !== "[") {
res += ", ";
}
res += `${k}:${this._props[k]}`;
}
res += `${k}:${this._props[k]}`;
}
res += "]"
res += "]";
return res;
}
......@@ -174,6 +178,7 @@ export class Props implements IObservable {
/**
* Nub utilisé dans une session
*/
// tslint:disable-next-line:max-classes-per-file
export class SessionNub {
private _props: Props;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment