Procházet zdrojové kódy

fix: statement problem

mrxiaozhuox před 3 roky
rodič
revize
dd9f0f362e
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      packages/interpreter/src/interpreter.js

+ 2 - 1
packages/interpreter/src/interpreter.js

@@ -102,10 +102,11 @@ export class Interpreter {
   SetAttribute(root, field, value, ns) {
     const name = field;
     const node = this.nodes[root];
+    console.log(ns);
     if (ns === "style") {
       // @ts-ignore
       node.style[name] = value;
-    } else if (ns != null || ns !== undefined) {
+    } else if (ns != null || ns != undefined) {
       node.setAttributeNS(ns, name, value);
     } else {
       switch (name) {