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

Function getBindingAttr

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

Source from the content-addressed store, hash-verified

5506}
5507
5508function getBindingAttr (
5509 el,
5510 name,
5511 getStatic
5512) {
5513 var dynamicValue =
5514 getAndRemoveAttr(el, ':' + name) ||
5515 getAndRemoveAttr(el, 'v-bind:' + name);
5516 if (dynamicValue != null) {
5517 return parseFilters(dynamicValue)
5518 } else if (getStatic !== false) {
5519 var staticValue = getAndRemoveAttr(el, name);
5520 if (staticValue != null) {
5521 return JSON.stringify(staticValue)
5522 }
5523 }
5524}
5525
5526function getAndRemoveAttr (el, name) {
5527 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