diff --git a/frontend/src/metadata/components/radio-group/index.css b/frontend/src/metadata/components/radio-group/index.css index 5bc9682ddb..75c6e8705f 100644 --- a/frontend/src/metadata/components/radio-group/index.css +++ b/frontend/src/metadata/components/radio-group/index.css @@ -51,4 +51,3 @@ .sf-metadata-radio-group .sf-metadata-radio-group-option.active + .sf-metadata-radio-group-option::before { opacity: 0; } - diff --git a/frontend/src/metadata/components/radio-group/index.js b/frontend/src/metadata/components/radio-group/index.js index 4718e3409a..910f0cd136 100644 --- a/frontend/src/metadata/components/radio-group/index.js +++ b/frontend/src/metadata/components/radio-group/index.js @@ -1,4 +1,3 @@ - import React, { useCallback, useMemo } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; diff --git a/frontend/src/metadata/constants/view/table.js b/frontend/src/metadata/constants/view/table.js index aab12d2610..aa05611651 100644 --- a/frontend/src/metadata/constants/view/table.js +++ b/frontend/src/metadata/constants/view/table.js @@ -98,4 +98,3 @@ export const PASTE_SOURCE = { COPY: 'copy', CUT: 'cut', }; - diff --git a/media/js/map/marker-clusterer.js b/media/js/map/marker-clusterer.js index 57f58edc6f..1ab237d3dc 100644 --- a/media/js/map/marker-clusterer.js +++ b/media/js/map/marker-clusterer.js @@ -1,5 +1,5 @@ /** - * @fileoverview MarkerClusterer标记聚合器用来解决加载大量点要素到地图上产生覆盖现象的问题,并提高性能。 + * @fileoverview MarkerCluster标记聚合器用来解决加载大量点要素到地图上产生覆盖现象的问题,并提高性能。 * 主入口类是MarkerCluster, * 基于Baidu Map API 1.2。 * @@ -583,14 +583,14 @@ var BMapLib = window.BMapLib = BMapLib || {}; let clickTimeout; this._clusterMarker.addEventListener("click", (event) => { if (clickTimeout) { - clearTimeout(clickTimeout); - clickTimeout = null; - return; + clearTimeout(clickTimeout); + clickTimeout = null; + return; } clickTimeout = setTimeout(() => { - if (this._markerClusterer && typeof this._markerClusterer.getCallback() === 'function') { - const markers = this._markers; - this._markerClusterer.getCallback()(event, markers); + if (this._markerClusterer && typeof this._markerClusterer.getCallback() === 'function') { + const markers = this._markers; + this._markerClusterer.getCallback()(event, markers); } clickTimeout = null; }, 300); // Delay to differentiate between single and double click @@ -598,8 +598,8 @@ var BMapLib = window.BMapLib = BMapLib || {}; this._clusterMarker.addEventListener("dblclick", (event) => { if (clickTimeout) { - clearTimeout(clickTimeout); - clickTimeout = null; + clearTimeout(clickTimeout); + clickTimeout = null; } // Do nothing on double click });