Fix no-return-assign in ES5

[MAILPOET-1033]
This commit is contained in:
Pavel Dohnal
2017-08-16 10:30:11 +02:00
parent a37117cfa3
commit 7725391eff
2 changed files with 4 additions and 3 deletions

View File

@@ -33,7 +33,6 @@
"no-useless-return": 0, "no-useless-return": 0,
"array-callback-return": 0, "array-callback-return": 0,
"new-cap": 0, "new-cap": 0,
"no-return-assign": 0,
"no-continue": 0, "no-continue": 0,
"no-new": 0, "no-new": 0,
"no-cond-assign": 0, "no-cond-assign": 0,

View File

@@ -11,12 +11,14 @@ Object.extend(document, (function() {
var cache = Event.cacheDelegated; var cache = Event.cacheDelegated;
function getCacheForSelector(selector) { function getCacheForSelector(selector) {
return cache[selector] = cache[selector] || {}; cache[selector] = cache[selector] || {};
return cache[selector];
} }
function getWrappersForSelector(selector, eventName) { function getWrappersForSelector(selector, eventName) {
var c = getCacheForSelector(selector); var c = getCacheForSelector(selector);
return c[eventName] = c[eventName] || []; c[eventName] = c[eventName] || [];
return c[eventName];
} }
function findWrapper(selector, eventName, handler) { function findWrapper(selector, eventName, handler) {