-
-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Description
As per request by @bartveneman on Twitter:
Would be nice to expose calculateSpecificityOfSelectorObject so we can avoid
convertToAST-> typeof source -> source instanceof Object -> source.type == 'Selector'specificity/src/core/calculate.js
Line 5 in 12557b7
const calculateSpecificityOfSelectorObject = (selectorObj) => { This adds up quickly on several thousands of selectors like on our website.
Considered this in the past but hadn’t done set yet because I’m not too happy with the name of the function. Open to suggestions for a shorter - yet also clear - name. If no alternative can be found, then I’m fine with exposing as is.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels