Fix eslint new-cap in es5 files

[MAILPOET-1146]
This commit is contained in:
Pavel Dohnal
2018-03-01 09:46:05 +00:00
committed by Rostislav Wolný
parent d89eb07b3c
commit 981e4a56e3
2 changed files with 4 additions and 5 deletions

View File

@ -20,7 +20,6 @@
"no-restricted-syntax": 0, "no-restricted-syntax": 0,
"no-useless-concat": 0, "no-useless-concat": 0,
"no-nested-ternary": 0, "no-nested-ternary": 0,
"new-cap": 0,
"no-continue": 0, "no-continue": 0,
"no-new": 0, "no-new": 0,
"no-redeclare": 0, "no-redeclare": 0,

View File

@ -143,9 +143,9 @@ Observable = (function () {
return name.underscore().split('_').join(':'); return name.underscore().split('_').join(':');
} }
function getWrapper(handler, klass) { function getWrapper(handler, Klass) {
return function (event) { return function (event) {
return handler.call(new klass(this), event, event.memo); return handler.call(new Klass(this), event, event.memo);
}; };
} }
@ -159,9 +159,9 @@ Observable = (function () {
}); });
} }
function onDomLoad(selector, klass) { function onDomLoad(selector, Klass) {
window.$$(selector).each(function (element) { window.$$(selector).each(function (element) {
new klass(element).onDomLoaded(); new Klass(element).onDomLoaded();
}); });
} }
return { return {