Tone.js/grunt/fragments/before.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

12 lines
No EOL
247 B
JavaScript

(function (root) {
"use strict";
var Tone;
//constructs the main Tone object
function mainModule(func){
Tone = func();
}
//invokes each of the modules with the main Tone object as the argument
function toneModule(func){
func(Tone);
}