mirror of
https://github.com/Tonejs/Tone.js
synced 2025-01-10 10:58:52 +00:00
666d8f96c1
gets rid of the problem of having the global ‘define’ left defined in the window which may have adverse effects on other AMD shim modules.
1 line
No EOL
259 B
Text
1 line
No EOL
259 B
Text
(function(e){if(typeof define!=="function"&&typeof e.Tone!=="function"){e.ToneDefinedDefine=true;e.define=function(){var t=arguments[arguments.length-1];var n=arguments[0];if(n==="Tone/core/Tone"){e.Tone=t()}else if(typeof t==="function"){t(e.Tone)}}}})(this) |