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

Function genRadioModel

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

Source from the content-addressed store, hash-verified

5769}
5770
5771function genRadioModel (
5772 el,
5773 value,
5774 modifiers
5775) {
5776 var number = modifiers && modifiers.number;
5777 var valueBinding = getBindingAttr(el, 'value') || 'null';
5778 valueBinding = number ? ("_n(" + valueBinding + ")") : valueBinding;
5779 addProp(el, 'checked', ("_q(" + value + "," + valueBinding + ")"));
5780 addHandler(el, CHECKBOX_RADIO_TOKEN, genAssignmentCode(value, valueBinding), null, true);
5781}
5782
5783function genSelect (
5784 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