Fix eslint new-cap in es5 files
[MAILPOET-1146]
This commit is contained in:
committed by
Rostislav Wolný
parent
d89eb07b3c
commit
981e4a56e3
@ -143,9 +143,9 @@ Observable = (function () {
|
||||
return name.underscore().split('_').join(':');
|
||||
}
|
||||
|
||||
function getWrapper(handler, klass) {
|
||||
function getWrapper(handler, Klass) {
|
||||
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) {
|
||||
new klass(element).onDomLoaded();
|
||||
new Klass(element).onDomLoaded();
|
||||
});
|
||||
}
|
||||
return {
|
||||
|
Reference in New Issue
Block a user