renamed toneModule to ToneModule

This commit is contained in:
Yotam Mann 2015-02-21 14:04:20 -05:00
parent af855b3f55
commit bce8a09add
5 changed files with 8 additions and 9 deletions

View file

@ -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("
}
]
},

View file

@ -7,4 +7,4 @@
} else {
root.Tone = Tone;
}
} (this));
} (this));

View file

@ -1 +1 @@
} (this));
} (this));

View file

@ -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);
}

View file

@ -2,6 +2,6 @@
"use strict";
function tonePreset(func){
function TonePreset(func){
func(root.Tone);
}