Alternative solution for this issue: https://github.com/mootools/mootools-core/pull/2553