Skip to content

Node.js based forum software built for the modern web

linted client-side core modules

psychobunny26245133f391
diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js
index adaef4cb8f..cc5aaa6012 100644
--- a/public/src/ajaxify.js
+++ b/public/src/ajaxify.js
@@ -208,9 +208,11 @@ $(document).ready(function() {
ajaxify.getCustomTemplateMapping = function(tpl) {
if (templatesModule.config && templatesModule.config.custom_mapping && tpl !== undefined) {
for (var pattern in templatesModule.config.custom_mapping) {
- var match = tpl.match(pattern);
- if (match && match[0] === tpl) {
- return (templatesModule.config.custom_mapping[pattern]);
+ if (templatesModule.config.custom_mapping.hasOwnProperty(pattern)) {
+ var match = tpl.match(pattern);
+ if (match && match[0] === tpl) {
+ return (templatesModule.config.custom_mapping[pattern]);
+ }
}
}
}
diff --git a/public/src/app.js b/public/src/app.js
index d3a47a1bc6..1cc122e8ee 100644
--- a/public/src/app.js
+++ b/public/src/app.js
@@ -1,5 +1,5 @@
"use strict";
-/*global io, templates, translator, ajaxify, utils, bootbox, RELATIVE_PATH, config*/
+/*global io, templates, translator, ajaxify, utils, bootbox, RELATIVE_PATH, config, Visibility*/
var socket,
app = app || {};
@@ -366,7 +366,7 @@ app.cacheBuster = null;
}
}
});
- }
+ };
function createHeaderTooltips() {
if (utils.findBootstrapEnvironment() === 'xs') {