ysmood / yaku

A lightweight promise library
https://tonicdev.com/ysmood/yaku
MIT License
291 stars 28 forks source link

Yaku doesn't work if div with id="process" exists #43

Closed jonashaag closed 7 years ago

jonashaag commented 7 years ago

This is the weirdest glitch I've found in my entire existence.

If you add a <div id="process"> to the DOM, it breaks.

The problem is that Yaku checks for window.process, which seems to be defined in some browsers as $("#process"). Yaku then tries to use process.nextTick, which of course doesn't exist.

This doesn't happen in all browsers; not sure why.

ysmood commented 7 years ago

😂 What a shame.

ysmood commented 7 years ago

Thanks for your report, new version is now available.