You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -187,10 +194,7 @@ function getUniqueSelector( element, selectorTypes, attributesToIgnore, filters
187
194
* @param {Object} options (optional) Customize various behaviors of selector generation
188
195
* @param {String[]} options.selectorTypes Specify the set of traits to leverage when building selectors in precedence order
189
196
* @param {String[]} options.attributesToIgnore Specify a set of attributes to *not* leverage when building selectors
190
-
* @param {Object} options.filters Specify a set of filter functions to conditionally reject various traits when building selectors. Keys correspond to a `selectorTypes` entry, values should be a function accepting three parameters:
191
-
* * selectorType: The selector type/category being generated
192
-
* * key: The key being evaluated - this will typically match the `selectorType` except in aggregate types like `attributes`
193
-
* * value: The value to consider. Returning `true` will allow its use in selector generation, `false` will prevent.
197
+
* @param {Filter} options.filter Provide a filter function to conditionally reject various traits when building selectors.
194
198
* @param {Map<Element, String>} options.selectorCache Provide a cache to improve performance of repeated selector generation - it is the responsibility of the caller to handle cache invalidation. Caching is performed using the input Element as key. This cache handles Element -> Selector caching.
195
199
* @param {Map<String, Boolean>} options.isUniqueCache Provide a cache to improve performance of repeated selector generation - it is the responsibility of the caller to handle cache invalidation. Caching is performed using the input Element as key. This cache handles Selector -> isUnique caching.
196
200
* @return {String}
@@ -201,10 +205,18 @@ export default function unique( el, options={} ) {
0 commit comments