Hi! I noticed that when printing in Firefox, InternalError: too much recursion is thrown twice, at the beforeprint and afterprint events. Printing still works fine, but only after about a second of delay once the JS engine stops the infinite recursion.
It's happening here: https://github.com/mkoryak/floatThead/blob/master/src/jquery.floatThead.js#L139, as triggerHandler then again calls the handlers set in that if statement.
This isn't personally causing me an issue (other than filling up my Sentry logs), but I'd imagine for sites with some functionality in the before/after print handlers it could create some trouble.
Reproduction URL: https://mkoryak.github.io/floatThead/ (it occurs on any normal install of floatThead from what I can tell)
Browser: Firefox 59
OS: Windows 10, macOS 10.13
jQuery version: 3.3.1 (latest)
floatThead version: 2.1.1 (latest)
Hi! I noticed that when printing in Firefox,
InternalError: too much recursionis thrown twice, at thebeforeprintandafterprintevents. Printing still works fine, but only after about a second of delay once the JS engine stops the infinite recursion.It's happening here: https://github.com/mkoryak/floatThead/blob/master/src/jquery.floatThead.js#L139, as
triggerHandlerthen again calls the handlers set in thatifstatement.This isn't personally causing me an issue (other than filling up my Sentry logs), but I'd imagine for sites with some functionality in the before/after print handlers it could create some trouble.
Reproduction URL: https://mkoryak.github.io/floatThead/ (it occurs on any normal install of floatThead from what I can tell)
Browser: Firefox 59
OS: Windows 10, macOS 10.13
jQuery version: 3.3.1 (latest)
floatThead version: 2.1.1 (latest)