File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,9 @@ class Rule extends EventEmitter {
206206 }
207207 let orderedSets = this . prioritizeConditions ( conditions )
208208 let cursor = Promise . resolve ( )
209- orderedSets . forEach ( ( set ) => {
209+ // use for() loop over Array.forEach to support IE8 without polyfill
210+ for ( let i = 0 ; i < orderedSets . length ; i ++ ) {
211+ let set = orderedSets [ i ]
210212 let stop = false
211213 cursor = cursor . then ( ( setResult ) => {
212214 // after the first set succeeds, don't fire off the remaining promises
@@ -225,7 +227,7 @@ class Rule extends EventEmitter {
225227 // all conditions passed; proceed with running next set in parallel
226228 return evaluateConditions ( set , method )
227229 } )
228- } )
230+ }
229231 return cursor
230232 }
231233
You can’t perform that action at this time.
0 commit comments