linting, TIL that obj.$key is valid syntax

This commit is contained in:
psychobunny
2014-10-08 12:22:39 -04:00
parent 729ed6fbda
commit f149fb0191
3 changed files with 11 additions and 8 deletions

View File

@@ -30,8 +30,9 @@ var utils = require('./../../public/src/utils'),
var middleware = {};
function routeCurrentTheme(app, themeId, themesData) {
var themeId = (themeId || 'nodebb-theme-vanilla'),
themeObj = (function(id) {
themeId = (themeId || 'nodebb-theme-vanilla');
var themeObj = (function(id) {
return themesData.filter(function(themeObj) {
return themeObj.id === id;
})[0];