It feels more natural for these rules to be applied top to bottom rather than bottom to top.

This commit is contained in:
Ashi Krishnan
2018-07-24 13:04:34 -04:00
parent 9fa320a954
commit 97ae903cab

View File

@@ -919,7 +919,7 @@ class LayerHighlightIterator {
const applyLeafRules = (rules, cursor) => {
if (!rules || typeof rules === 'string') return rules
if (Array.isArray(rules)) {
let i = rules.length; while (i --> 0) {
for (let i = 0, {length} = rules; i != length; ++i) {
const result = applyLeafRules(rules[i], cursor)
if (result) return result
}