Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 812d47e

Browse files
committedDec 14, 2015
chore: fix recursion error
- This fixes an error in Firefox for Linux where too much recursion happens Closes #5061 Fixes #4977
1 parent 6dbd3f8 commit 812d47e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

Diff for: ‎misc/demo/assets/rainbow.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,9 @@ window['Rainbow'] = (function() {
311311
_processPattern(regex, pattern, code, callback);
312312
};
313313

314-
// every 100 items we process let's call set timeout
314+
// every 50 items we process let's call set timeout
315315
// to let the ui breathe a little
316-
return match_counter % 100 > 0 ? nextCall() : setTimeout(nextCall, 0);
316+
return match_counter % 50 > 0 ? nextCall() : setTimeout(nextCall, 0);
317317
};
318318

319319
// if this is not a child match and it falls inside of another

0 commit comments

Comments
 (0)
This repository has been archived.