haoxinlei há 7 anos atrás
pai
commit
5c406d113f
1 ficheiros alterados com 0 adições e 4 exclusões
  1. 0 4
      index.js

+ 0 - 4
index.js

@@ -379,8 +379,6 @@ let setStyle = (style) => {
 
 //获取selector
 export function getShapesSelector(airspaceInfos, style, currentAirspaceIndex) {
-    if (!style)
-        style = {};
     currentAirspaceIndex = currentAirspaceIndex ? currentAirspaceIndex : () => -1;
     let circles = getCircleSelector(airspaceInfos, setStyle(style), currentAirspaceIndex);
     let lineAndMarkers = getLineAndMarkerSelector(airspaceInfos, setStyle(style), currentAirspaceIndex);
@@ -399,8 +397,6 @@ export function getShapesSelector(airspaceInfos, style, currentAirspaceIndex) {
 }
 //获取数组
 export function getShapes(airspaceInfos, style, currentAirspaceIndex) {
-    if (!style)
-        style = {};
     currentAirspaceIndex = currentAirspaceIndex ? currentAirspaceIndex : () => -1;
     let circles = getCircles(airspaceInfos, setStyle(style), currentAirspaceIndex);
     let lineAndMarkers = getLinesAndMarkers(airspaceInfos, setStyle(style), currentAirspaceIndex);