Skip to content

Commit

Permalink
wrap fallback in parens
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt committed Feb 3, 2023
1 parent d5c8bfa commit 5dceb78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/base/src/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,8 @@ export class WidgetModel extends Backbone.Model {
* binary array buffers.
*/
serialize(state: Dict<any>): JSONObject {
const deepcopy =
globalThis.structuredClone || (x: any) => JSON.parse(JSON.stringify(x));
const deepcopy =
globalThis.structuredClone || ((x: any) => JSON.parse(JSON.stringify(x)));
const serializers =
(this.constructor as typeof WidgetModel).serializers || {};
for (const k of Object.keys(state)) {
Expand Down

0 comments on commit 5dceb78

Please sign in to comment.