From 18e7285a7f6a1be8b609b3f946429333cbb2d44a Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Thu, 9 Jul 2015 17:48:46 +0200 Subject: [PATCH] JsHint --- controllers/prototype/dbrequests.js | 4 ++-- js/l3d/apps/prototype/Coin.js | 2 +- js/l3d/apps/prototype/tutorial/TutorialSteps.js | 4 ++-- js/l3d/src/recommendations/BaseRecommendation.js | 2 +- js/l3d/src/utils/Logger.js | 2 +- js/l3d/src/utils/ObjectClicker.js | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/controllers/prototype/dbrequests.js b/controllers/prototype/dbrequests.js index eaa3fbd..1de7c68 100644 --- a/controllers/prototype/dbrequests.js +++ b/controllers/prototype/dbrequests.js @@ -296,7 +296,7 @@ Info.prototype.loadPointerLocked = function() { self.tryMerge(); } ); -} +}; Info.prototype.loadSwitchedLockOption = function() { var self = this; @@ -322,7 +322,7 @@ Info.prototype.loadSwitchedLockOption = function() { self.tryMerge(); } ); -} +}; var UserCreator = function(finishAction) { this.finishAction = finishAction; diff --git a/js/l3d/apps/prototype/Coin.js b/js/l3d/apps/prototype/Coin.js index 2aac92e..ad3219f 100644 --- a/js/l3d/apps/prototype/Coin.js +++ b/js/l3d/apps/prototype/Coin.js @@ -23,7 +23,7 @@ Coin.setSize = function(width,height) { this.domElement.width = width; this.domElement.height = height; this.update(); -} +}; Coin.image = new Image(); Coin.image.src = '/static/img/redcoin.png'; diff --git a/js/l3d/apps/prototype/tutorial/TutorialSteps.js b/js/l3d/apps/prototype/tutorial/TutorialSteps.js index d314276..292c472 100644 --- a/js/l3d/apps/prototype/tutorial/TutorialSteps.js +++ b/js/l3d/apps/prototype/tutorial/TutorialSteps.js @@ -108,13 +108,13 @@ TutorialSteps.prototype.addCoin = function(coin) { this.coins.push(coin); coin.addToScene(this.scene); this.clickableObjects.push(coin); -} +}; TutorialSteps.prototype.addRecommendation = function(reco) { this.cameras.push(reco); reco.addToScene(this.scene); this.clickableObjects.push(reco); -} +}; TutorialSteps.prototype.nextStep = function() { if (this.step < this.instructions.length) { diff --git a/js/l3d/src/recommendations/BaseRecommendation.js b/js/l3d/src/recommendations/BaseRecommendation.js index c8d6824..030c302 100644 --- a/js/l3d/src/recommendations/BaseRecommendation.js +++ b/js/l3d/src/recommendations/BaseRecommendation.js @@ -79,7 +79,7 @@ L3D.BaseRecommendation.prototype.raycast = function(raycaster, intersects) { } -} +}; /** * Changes the color of the meshes like a HTML link diff --git a/js/l3d/src/utils/Logger.js b/js/l3d/src/utils/Logger.js index 3b6ed52..7da79d4 100644 --- a/js/l3d/src/utils/Logger.js +++ b/js/l3d/src/utils/Logger.js @@ -134,4 +134,4 @@ L3D.BD.Event.SwitchedLockOption.prototype.send = function() { }; L3D.BD.Private.sendData(url, data); -} +}; diff --git a/js/l3d/src/utils/ObjectClicker.js b/js/l3d/src/utils/ObjectClicker.js index 22839c2..68ce5da 100644 --- a/js/l3d/src/utils/ObjectClicker.js +++ b/js/l3d/src/utils/ObjectClicker.js @@ -117,7 +117,7 @@ ObjectClicker.prototype.getPointedObject = function() { var intersects = this.raycaster.intersectObjects(this.objects, false); // Avoid non-raycastable objects - for (var i = 0; i < intersects.length && !intersects[i].object.raycastable; i++){}; + for (var i = 0; i < intersects.length && !intersects[i].object.raycastable; i++){} // Objects are sorted by distance in intersects, the best is the first return intersects[i] !== undefined ? intersects[i].object : undefined; @@ -162,7 +162,7 @@ ObjectClicker.prototype.click = function() { this.onClick(this.currentPointedObject, this.mouse.x, this.mouse.y); -} +}; return ObjectClicker;