run ESLint

Several bugs were found (and fixed):
src/client/index.js:71
the following if() was equivalent to if (false in obj)

src/client/dom/element.js:207
the following if() was equivalent to if (!element || false in element)

src/client/rewrite/html.js:179
an undefined iterate() was referenced
This commit is contained in:
David Reed 2022-11-23 12:37:00 -05:00
parent f0611a980c
commit 561a1ee190
No known key found for this signature in database
GPG key ID: 2211691D8A1EE72F
19 changed files with 161 additions and 220 deletions

View file

@ -204,7 +204,7 @@ class ElementApi extends EventEmitter {
);
}
hookProperty(element, prop, handler) {
if (!element || !prop in element) return false;
if (!element || !(prop in element)) return false;
if (this.ctx.nativeMethods.isArray(element)) {
for (const elem of element) {