corbanbrook / dsp.js

Digital Signal Processing for Javascript
http://weare.buildingsky.net
MIT License
1.73k stars 235 forks source link

Preserve reference to global this. #43

Open wtcross opened 3 years ago

wtcross commented 3 years ago

This change preserves a reference to the global this as self so that module bundlers that change context do not prevent this package from working correctly. Otherwise, this will be undefined.

tczhangzhi commented 2 years ago

Good job, I suppose this PR should be merged!

CaperCube commented 1 year ago

Is there a chance this might be merged? This fix is perfect!