Bug 1228363: Fixed eslint balanced-listeners rule to ignore listeners with no arguments. r=pbrosset

--HG--
extra : commitid : 4h60KEIjzn0
extra : rebase_source : 8c33f3639546c701b9e2d71d74af40cc1ea4c55b
This commit is contained in:
Michael Ratcliffe 2015-11-27 14:12:52 -08:00
parent bd090743b5
commit 70823931ab

View File

@ -84,6 +84,10 @@ module.exports = function(context) {
return {
CallExpression: function(node) {
if (node.arguments.length === 0) {
return;
}
if (node.callee.type === "MemberExpression") {
var listenerMethodName = node.callee.property.name;