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

Function normalizeStyleBinding

static/vuejs/vue.common.js:6022–6030  ·  view source on GitHub ↗
(bindingStyle)

Source from the content-addressed store, hash-verified

6020
6021// normalize possible array / string values into Object
6022function normalizeStyleBinding (bindingStyle) {
6023 if (Array.isArray(bindingStyle)) {
6024 return toObject(bindingStyle)
6025 }
6026 if (typeof bindingStyle === 'string') {
6027 return parseStyleText(bindingStyle)
6028 }
6029 return bindingStyle
6030}
6031
6032/**
6033 * 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