From 883f35a99bd15b5549979207ab2d917afa35eee8 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Mon, 27 Jan 2020 12:28:55 -0500 Subject: [PATCH] indent --- modules/core/context.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/core/context.js b/modules/core/context.js index b69e5f30a..9bad11736 100644 --- a/modules/core/context.js +++ b/modules/core/context.js @@ -60,9 +60,9 @@ export function coreContext() { _storage = _storage || (() => { let s = {}; return { - getItem: (k) => s[k], - setItem: (k, v) => s[k] = v, - removeItem: (k) => delete s[k] + getItem: (k) => s[k], + setItem: (k, v) => s[k] = v, + removeItem: (k) => delete s[k] }; })(); @@ -332,10 +332,10 @@ export function coreContext() { context.editableDataEnabled = () => _map.editableDataEnabled(); context.surfaceRect = () => _map.surface.node().getBoundingClientRect(); context.editable = () => { - // don't allow editing during save - const mode = context.mode(); - if (!mode || mode.id === 'save') return false; - return _map.editableDataEnabled(); + // don't allow editing during save + const mode = context.mode(); + if (!mode || mode.id === 'save') return false; + return _map.editableDataEnabled(); };