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

Function genRadioModel

static/vuejs/vue.common.js:5777–5787  ·  view source on GitHub ↗
(
    el,
    value,
    modifiers
)

Source from the content-addressed store, hash-verified

5775}
5776
5777function genRadioModel (
5778 el,
5779 value,
5780 modifiers
5781) {
5782 var number = modifiers && modifiers.number;
5783 var valueBinding = getBindingAttr(el, 'value') || 'null';
5784 valueBinding = number ? ("_n(" + valueBinding + ")") : valueBinding;
5785 addProp(el, 'checked', ("_q(" + value + "," + valueBinding + ")"));
5786 addHandler(el, CHECKBOX_RADIO_TOKEN, genAssignmentCode(value, valueBinding), null, true);
5787}
5788
5789function genSelect (
5790 el,

Callers 1

modelFunction · 0.70

Calls 4

getBindingAttrFunction · 0.70
addPropFunction · 0.70
addHandlerFunction · 0.70
genAssignmentCodeFunction · 0.70

Tested by

no test coverage detected