MCPcopy Create free account
hub / github.com/TruthHun/BookStack / normalizeStyleBinding

Function normalizeStyleBinding

static/vuejs/vue.esm.js:6020–6028  ·  view source on GitHub ↗
(bindingStyle)

Source from the content-addressed store, hash-verified

6018
6019// normalize possible array / string values into Object
6020function normalizeStyleBinding (bindingStyle) {
6021 if (Array.isArray(bindingStyle)) {
6022 return toObject(bindingStyle)
6023 }
6024 if (typeof bindingStyle === 'string') {
6025 return parseStyleText(bindingStyle)
6026 }
6027 return bindingStyle
6028}
6029
6030/**
6031 * parent component style should be after child's

Callers 2

normalizeStyleDataFunction · 0.70
updateStyleFunction · 0.70

Calls 1

toObjectFunction · 0.70

Tested by

no test coverage detected