Low-risk fixes suggested by JSHint.

This commit is contained in:
Robert Gravina
2014-12-26 13:40:51 +09:00
committed by Blake Grotewold
parent 2efa9f1667
commit 67b3c7fb7e
11 changed files with 122 additions and 121 deletions
+4 -5
View File
@@ -120,11 +120,11 @@
.addClass('customSelect')
.addClass('menuBtn')
.appendTo(menu);
var options = $('<span>')
var selectOptions = $('<span>')
.addClass('customSelectOptions')
.appendTo(customSelect);
var optionsList = $('<ul>')
.appendTo(options);
.appendTo(selectOptions);
$('<li>')
.text("language.")
.appendTo(optionsList);
@@ -339,7 +339,7 @@
}
}
});
Engine.autoSelect('#description textarea')
Engine.autoSelect('#description textarea');
},
import64: function(string64) {
@@ -462,7 +462,6 @@
var darkCss = Engine.findStylesheet('darkenLights');
if (darkCss == null) {
$('head').append('<link rel="stylesheet" href="css/dark.css" type="text/css" title="darkenLights" />');
Engine.turnLightsOff;
$('.lightsOff').text(_('lights on.'));
} else if (darkCss.disabled) {
darkCss.disabled = false;
@@ -496,7 +495,7 @@
var diff = Math.abs(panelIndex - currentIndex);
slider.animate({left: -(panelIndex * 700) + 'px'}, 300 * diff);
if($SM.get('stores.wood') != undefined) {
if($SM.get('stores.wood') !== undefined) {
// FIXME Why does this work if there's an animation queue...?
stores.animate({right: -(panelIndex * 700) + 'px'}, 300 * diff);
}