Skip to content

Commit

Permalink
chore: fix import path + comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Feb 12, 2020
1 parent 27913e6 commit d866d38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/compiler-dom/src/stringifyStatic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ function shouldOptimize(node: ElementNode): boolean {
let bindingThreshold = 5
let nodeThreshold = 20

// TODO: check for cases where using innerHTML will result in different
// output compared to imperative node insertions.
// probably only need to check for most common case
// i.e. non-phrasing-content tags inside `<p>`
function walk(node: ElementNode) {
for (let i = 0; i < node.children.length; i++) {
if (--nodeThreshold === 0) {
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime-dom/src/nodeOps.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RendererOptions } from '@vue/runtime-core/src'
import { RendererOptions } from '@vue/runtime-core'

const doc = (typeof document !== 'undefined' ? document : null) as Document
const svgNS = 'http://www.w3.org/2000/svg'
Expand Down

0 comments on commit d866d38

Please sign in to comment.