Tone.js/grunt/fragments/after.frag
Yotam Mann e108e59066 new build regexp
removes all defines and replaces them with a function. this enables the
tonejs build to be used with requirejs
2014-10-28 14:41:54 -04:00

10 lines
182 B
JavaScript

//requirejs compatibility
if ( typeof define === "function" && define.amd ) {
define( "Tone", [], function() {
return Tone;
});
} else {
root.Tone = Tone;
}
} (this));