Make JSHint more strict.

This commit is contained in:
kovacsv 2014-10-24 17:35:26 +02:00
parent 29fcc79941
commit 0663de32ad
2 changed files with 17 additions and 12 deletions

View File

@ -1,4 +1,4 @@
function LoadOnline3DModels ()
LoadOnline3DModels = function ()
{
function Error (viewerElement, message)
{
@ -15,7 +15,6 @@ function LoadOnline3DModels ()
return;
}
var myThis = this;
var urlList = urls.split ('|');
JSM.ConvertURLListToJsonData (urlList, {
onError : function () {
@ -37,7 +36,7 @@ function LoadOnline3DModels ()
var currentMeshIndex = 0;
var environment = new JSM.AsyncEnvironment ({
onStart : function (taskCount/*, meshes*/) {
onStart : function (/*taskCount, meshes*/) {
viewer.EnableDraw (false);
},
onProcess : function (currentTask, meshes) {
@ -75,4 +74,4 @@ function LoadOnline3DModels ()
Error (viewer, 'No browser support.');
}
}
}
};

View File

@ -1,12 +1,18 @@
{
"maxerr" : 50,
"curly" : true,
"forin" : true,
"latedef" : true,
"nonew" : true,
"quotmark" : true,
"unused" : true,
"funcscope" : true,
"lastsemic" : true,
"loopfunc" : true,
"shadow" : true,
"globals" : {
"JSM" : true,
"ImporterApp" :true,
"ImporterMenu" : true,
"ImporterViewer" : true,
"ImporterButtons" : true,
"ImporterProgressBar" : true,
"InfoTable" : true,
"THREE" : false
"JSM" : false,
"THREE" : false,
"requestAnimationFrame" : false
}
}