chore: notes on style binding optimization

This commit is contained in:
Evan You
2019-06-03 13:57:19 +08:00
parent 2848f65a7f
commit c442785465
3 changed files with 6 additions and 1 deletions

View File

@@ -318,7 +318,6 @@ export function createRenderer(options: RendererOptions) {
// style
// this flag is matched when the element has dynamic style bindings
// TODO separate static and dynamic styles?
if (patchFlag & STYLE) {
hostPatchProp(el, 'style', newProps.style, oldProps.style, isSVG)
}