Home / Function/ checkPrefixedProp() — vue Function Reference

checkPrefixedProp() — vue Function Reference

Architecture documentation for the checkPrefixedProp() function in style.spec.ts from the vue codebase.

Entity Profile

Relationship Graph

Source Code

test/unit/features/directives/style.spec.ts lines 3–16

function checkPrefixedProp(prop) {
  const el = document.createElement('div')
  const upper = prop.charAt(0).toUpperCase() + prop.slice(1)
  if (!(prop in el.style)) {
    const prefixes = ['Webkit', 'Moz', 'ms']
    let i = prefixes.length
    while (i--) {
      if (prefixes[i] + upper in el.style) {
        prop = prefixes[i] + upper
      }
    }
  }
  return prop
}

Domain

Subdomains

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free