diff options
| author | bob <bcz@cs.brown.edu> | 2019-04-15 11:59:50 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-04-15 11:59:50 -0400 |
| commit | 6c0b421db6aa3204bbc6e42139d240f503000b5d (patch) | |
| tree | efebc3cf992a5b3c4f3aea41e568adb8bdb4149a /src/client/northstar/dash-fields/HistogramField.ts | |
| parent | c787b0eac374b4dabf6ede7ee40e77a28815d5c8 (diff) | |
fixed zoom fading somewhat.
Diffstat (limited to 'src/client/northstar/dash-fields/HistogramField.ts')
| -rw-r--r-- | src/client/northstar/dash-fields/HistogramField.ts | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/client/northstar/dash-fields/HistogramField.ts b/src/client/northstar/dash-fields/HistogramField.ts index 82de51d56..c699691a4 100644 --- a/src/client/northstar/dash-fields/HistogramField.ts +++ b/src/client/northstar/dash-fields/HistogramField.ts @@ -6,6 +6,7 @@ import { BasicField } from "../../../fields/BasicField"; import { Field, FieldId } from "../../../fields/Field"; import { CurrentUserUtils } from "../../../server/authentication/models/current_user_utils"; import { Types } from "../../../server/Message"; +import { OmitKeys } from "../../../Utils"; export class HistogramField extends BasicField<HistogramOperation> { @@ -13,17 +14,8 @@ export class HistogramField extends BasicField<HistogramOperation> { super(data ? data : HistogramOperation.Empty, save, id); } - omitKeys(obj: any, keys: any) { - var dup: any = {}; - for (var key in obj) { - if (keys.indexOf(key) === -1) { - dup[key] = obj[key]; - } - } - return dup; - } toString(): string { - return JSON.stringify(this.omitKeys(this.Data, ['Links', 'BrushLinks', 'Result', 'BrushColors', 'FilterModels', 'FilterOperand'])); + return JSON.stringify(OmitKeys(this.Data, ['Links', 'BrushLinks', 'Result', 'BrushColors', 'FilterModels', 'FilterOperand'])); } Copy(): Field { |
