Selaa lähdekoodia

style(runtime-core): remove a unnecessary continue (#505)

fisker Cheung 6 vuotta sitten
vanhempi
commit
b87c05159b
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1 2
      packages/runtime-core/src/renderer.ts

+ 1 - 2
packages/runtime-core/src/renderer.ts

@@ -614,8 +614,7 @@ export function createRenderer<
       }
       if (oldProps !== EMPTY_OBJ) {
         for (const key in oldProps) {
-          if (isReservedProp(key)) continue
-          if (!(key in newProps)) {
+          if (!isReservedProp(key) && !(key in newProps)) {
             hostPatchProp(
               el,
               key,