lint fixes and console removal

This commit is contained in:
Richard Davey 2018-05-04 02:46:38 +01:00
parent 22c6c23f52
commit c34de6acdf
4 changed files with 14 additions and 16 deletions

View file

@ -49,8 +49,6 @@ var AnimationJSONFile = new Class({
onLoadComplete: function ()
{
console.log('AnimationJSONFile.onLoadComplete');
this.loader.scene.sys.anims.fromJSON(this.data);
this.pendingDestroy();

View file

@ -115,7 +115,7 @@ AudioFile.create = function (loader, key, urls, config, xhrSettings)
}
// https://developers.google.com/web/updates/2012/02/HTML5-audio-and-the-Web-Audio-API-are-BFFs
var stream = GetFastValue(config, 'stream', false);
// var stream = GetFastValue(config, 'stream', false);
if (deviceAudio.webAudio && !(audioConfig && audioConfig.disableWebAudio))
{
@ -125,7 +125,7 @@ AudioFile.create = function (loader, key, urls, config, xhrSettings)
{
return new HTML5AudioFile(loader, key, urlConfig, config);
}
}
};
AudioFile.getAudioURL = function (game, urls)
{
@ -157,7 +157,7 @@ AudioFile.getAudioURL = function (game, urls)
}
return null;
}
};
/**
* Adds an Audio file to the current load queue.
@ -189,12 +189,14 @@ FileTypesManager.register('audio', function (key, urls, config, xhrSettings)
return this;
}
var audioFile;
if (Array.isArray(key))
{
for (var i = 0; i < key.length; i++)
{
// If it's an array it has to be an array of Objects, so we get everything out of the 'key' object
var audioFile = AudioFile.create(this, key[i]);
audioFile = AudioFile.create(this, key[i]);
if (audioFile)
{
@ -204,7 +206,7 @@ FileTypesManager.register('audio', function (key, urls, config, xhrSettings)
}
else
{
var audioFile = AudioFile.create(this, key, urls, config, xhrSettings);
audioFile = AudioFile.create(this, key, urls, config, xhrSettings);
if (audioFile)
{

View file

@ -42,14 +42,14 @@ var MultiAtlasFile = new Class({
var config = key;
key = GetFastValue(config, 'key');
url = GetFastValue(config, 'url');
xhrSettings = GetFastValue(config, 'xhrSettings');
atlasURL = GetFastValue(config, 'url');
atlasXhrSettings = GetFastValue(config, 'xhrSettings');
path = GetFastValue(config, 'path');
baseURL = GetFastValue(config, 'baseURL');
textureXhrSettings = GetFastValue(config, 'textureXhrSettings');
}
var data = new JSONFile(loader, key, url, xhrSettings);
var data = new JSONFile(loader, key, atlasURL, atlasXhrSettings);
LinkFile.call(this, loader, 'multiatlas', key, [ data ]);
@ -125,8 +125,6 @@ var MultiAtlasFile = new Class({
fileJSON.addToCache();
console.log(fileJSON.data);
var data = [];
var images = [];

View file

@ -53,10 +53,10 @@ var AtlasXML = function (texture, sourceIndex, xml)
// These are the original (non-trimmed) sprite values
if (frame.frameX)
{
frameX = Math.abs(parseInt(frame.frameX.value, 10));
frameY = Math.abs(parseInt(frame.frameY.value, 10));
frameWidth = parseInt(frame.frameWidth.value, 10);
frameHeight = parseInt(frame.frameHeight.value, 10);
var frameX = Math.abs(parseInt(frame.frameX.value, 10));
var frameY = Math.abs(parseInt(frame.frameY.value, 10));
var frameWidth = parseInt(frame.frameWidth.value, 10);
var frameHeight = parseInt(frame.frameHeight.value, 10);
newFrame.setTrim(
width,