Skip to content

Commit c91581b

Browse files
authored
Update rule.js
Add comment explaining for() loop rational
1 parent 938d131 commit c91581b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rule.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ class Rule extends EventEmitter {
206206
}
207207
let orderedSets = this.prioritizeConditions(conditions)
208208
let cursor = Promise.resolve()
209+
// use for() loop over Array.forEach to support IE8 without polyfill
209210
for (let i = 0; i < orderedSets.length; i++) {
210211
let set = orderedSets[i]
211212
let stop = false

0 commit comments

Comments
 (0)