optimize hover style map (#1635)
This commit is contained in:
@@ -2017,12 +2017,10 @@ function getHoverStylesMap() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// only need the style which includes the cursor attribute.
|
// only need the style which includes the cursor attribute.
|
||||||
for (const prop in styles) {
|
if (!("cursor" in styles)) {
|
||||||
if (prop.includes("cursor")) {
|
continue;
|
||||||
hoverMap.set(baseSelector, styles);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
hoverMap.set(baseSelector, styles);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user