fix: lint

This commit is contained in:
taoqf 2020-03-10 15:59:57 +08:00
parent 5aec0ba86c
commit 90ac099782

View file

@ -62,12 +62,11 @@ const functionCache = {
'use strict'; 'use strict';
return true; return true;
}, },
f55(el: HTMLElement, tagName: string, classes: string[], attr_key: string, value: string) { f55(el: HTMLElement, tagName: string, classes: string[], attr_key: string) {
'use strict'; 'use strict';
tagName = tagName || ''; tagName = tagName || '';
classes = classes || []; classes = classes || [];
attr_key = attr_key || ''; attr_key = attr_key || '';
value = value || '';
const attrs = el.attributes; const attrs = el.attributes;
return attrs.hasOwnProperty(attr_key); return attrs.hasOwnProperty(attr_key);
}, },