Fix eslint new-cap in es5 files
[MAILPOET-1146]
This commit is contained in:
committed by
Rostislav Wolný
parent
d89eb07b3c
commit
981e4a56e3
@ -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,
|
||||||
|
@ -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 {
|
||||||
|
Reference in New Issue
Block a user