mirror of
https://github.com/titaniumnetwork-dev/Ultraviolet.git
synced 2025-05-13 12:00:01 -04:00
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:
parent
f0611a980c
commit
561a1ee190
19 changed files with 161 additions and 220 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue