]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
style(runtime-core): remove a unnecessary continue (#505)
authorfisker Cheung <lionkay@gmail.com>
Thu, 28 Nov 2019 15:45:49 +0000 (23:45 +0800)
committerEvan You <yyx990803@gmail.com>
Thu, 28 Nov 2019 15:45:48 +0000 (10:45 -0500)
packages/runtime-core/src/renderer.ts

index 63a660562dfad4779f01e41d984239f181b997da..f666304b14100c2481f1023b37b2b13dbe853074 100644 (file)
@@ -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,