mirror of
https://github.com/Tonejs/Tone.js
synced 2025-01-08 18:08:46 +00:00
e108e59066
removes all defines and replaces them with a function. this enables the tonejs build to be used with requirejs
10 lines
182 B
JavaScript
10 lines
182 B
JavaScript
|
|
//requirejs compatibility
|
|
if ( typeof define === "function" && define.amd ) {
|
|
define( "Tone", [], function() {
|
|
return Tone;
|
|
});
|
|
} else {
|
|
root.Tone = Tone;
|
|
}
|
|
} (this));
|