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

Function normalizeStyleBinding

static/vuejs/vue.runtime.js:5568–5576  ·  view source on GitHub ↗
(bindingStyle)

Source from the content-addressed store, hash-verified

5566
5567// normalize possible array / string values into Object
5568function normalizeStyleBinding (bindingStyle) {
5569 if (Array.isArray(bindingStyle)) {
5570 return toObject(bindingStyle)
5571 }
5572 if (typeof bindingStyle === 'string') {
5573 return parseStyleText(bindingStyle)
5574 }
5575 return bindingStyle
5576}
5577
5578/**
5579 * 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