Minor formatting and type casting adjustment to make codebase internally consistent

This commit is contained in:
Andrew Sliwinski 2014-04-09 01:17:50 -07:00
parent 1bd49e4e49
commit 586f29a285
10 changed files with 259 additions and 217 deletions

View file

@ -42,11 +42,11 @@ Runtime.prototype.init = function() {
this.scene = $('#container');
window.AudioContext = window.AudioContext || window.webkitAudioContext;
this.audioContext = new AudioContext();
try{
this.audioGain = this.audioContext.createGain();
}catch(err){
this.audioGain = this.audioContext.createGainNode();
}
try {
this.audioGain = this.audioContext.createGain();
} catch(err) {
this.audioGain = this.audioContext.createGainNode();
}
this.audioGain.connect(runtime.audioContext.destination);
};
@ -120,7 +120,7 @@ Runtime.prototype.allStacksDo = function(f) {
}
}
$.each(stage.stacks, function(index, stack) {
f(stack, stage);
f(stack, stage);
});
};