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';
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';
tagName = tagName || '';
classes = classes || [];
attr_key = attr_key || '';
value = value || '';
const attrs = el.attributes;
return attrs.hasOwnProperty(attr_key);
},