mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 00:27:58 +00:00
renamed toneModule to ToneModule
This commit is contained in:
parent
af855b3f55
commit
bce8a09add
5 changed files with 8 additions and 9 deletions
|
@ -144,11 +144,11 @@ module.exports = function(grunt) {
|
|||
patterns: [
|
||||
{
|
||||
match: /define\('([^']*)'\w*,\w*\[([^\]]*)\]\w*,\w*/g,
|
||||
replacement: "toneModule("
|
||||
replacement: "ToneModule("
|
||||
},
|
||||
{
|
||||
match: /define\('Tone\/core\/Tone',\[\],/gi,
|
||||
replacement: "mainModule("
|
||||
replacement: "MainModule("
|
||||
},
|
||||
{
|
||||
match: /\n"use strict";\n/g,
|
||||
|
@ -166,7 +166,7 @@ module.exports = function(grunt) {
|
|||
patterns: [
|
||||
{
|
||||
match: /define\(\w*\[([^\]]*)\]\w*,\w*/g,
|
||||
replacement: "tonePreset("
|
||||
replacement: "TonePreset("
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -7,4 +7,4 @@
|
|||
} else {
|
||||
root.Tone = Tone;
|
||||
}
|
||||
} (this));
|
||||
} (this));
|
|
@ -1 +1 @@
|
|||
} (this));
|
||||
} (this));
|
|
@ -2,11 +2,10 @@
|
|||
"use strict";
|
||||
var Tone;
|
||||
//constructs the main Tone object
|
||||
function mainModule(func){
|
||||
function MainModule(func){
|
||||
Tone = func();
|
||||
}
|
||||
//invokes each of the modules with the main Tone object as the argument
|
||||
function toneModule(func){
|
||||
function ToneModule(func){
|
||||
func(Tone);
|
||||
}
|
||||
|
|
@ -2,6 +2,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
function tonePreset(func){
|
||||
function TonePreset(func){
|
||||
func(root.Tone);
|
||||
}
|
Loading…
Reference in a new issue