mirror of
https://github.com/Tonejs/Tone.js
synced 2025-01-23 17:15:01 +00:00
e108e59066
removes all defines and replaces them with a function. this enables the tonejs build to be used with requirejs
12 lines
No EOL
247 B
JavaScript
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);
|
|
}
|
|
|