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

Function getBindingAttr

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

Source from the content-addressed store, hash-verified

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