Преглед на файлове

fix removing attributes in web bindings

Evan Almloff преди 2 години
родител
ревизия
c881f9bf82
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      packages/interpreter/src/sledgehammer_bindings.rs

+ 1 - 1
packages/interpreter/src/sledgehammer_bindings.rs

@@ -217,7 +217,7 @@ mod js {
     }
     fn remove_attribute(id: u32, field: &str<u8, attr>, ns: &str<u8, ns_cache>) {
         r#"{name = $field$;
-        node = this.nodes[$id$];
+        node = nodes[$id$];
         if (ns == "style") {
             node.style.removeProperty(name);
         } else if (ns !== null && ns !== undefined && ns !== "") {