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

Function getBindingAttr

static/vuejs/vue.js:5504–5520  ·  view source on GitHub ↗
(
  el,
  name,
  getStatic
)

Source from the content-addressed store, hash-verified

5502}
5503
5504function getBindingAttr (
5505 el,
5506 name,
5507 getStatic
5508) {
5509 var dynamicValue =
5510 getAndRemoveAttr(el, ':' + name) ||
5511 getAndRemoveAttr(el, 'v-bind:' + name);
5512 if (dynamicValue != null) {
5513 return parseFilters(dynamicValue)
5514 } else if (getStatic !== false) {
5515 var staticValue = getAndRemoveAttr(el, name);
5516 if (staticValue != null) {
5517 return JSON.stringify(staticValue)
5518 }
5519 }
5520}
5521
5522function getAndRemoveAttr (el, name) {
5523 var val;

Callers 8

genCheckboxModelFunction · 0.70
genRadioModelFunction · 0.70
processKeyFunction · 0.70
processRefFunction · 0.70
processSlotFunction · 0.70
processComponentFunction · 0.70
transformNodeFunction · 0.70
transformNode$1Function · 0.70

Calls 2

getAndRemoveAttrFunction · 0.70
parseFiltersFunction · 0.70

Tested by

no test coverage detected