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

Function checkForAliasModel

static/vuejs/vue.esm.js:8211–8225  ·  view source on GitHub ↗
(el, value)

Source from the content-addressed store, hash-verified

8209}
8210
8211function checkForAliasModel (el, value) {
8212 var _el = el;
8213 while (_el) {
8214 if (_el.for && _el.alias === value) {
8215 warn$2(
8216 "<" + (el.tag) + " v-model=\"" + value + "\">: " +
8217 "You are binding v-model directly to a v-for iteration alias. " +
8218 "This will not be able to modify the v-for source array because " +
8219 "writing to the alias is like modifying a function local variable. " +
8220 "Consider using an array of objects and use v-model on an object property instead."
8221 );
8222 }
8223 _el = _el.parent;
8224 }
8225}
8226
8227/* */
8228

Callers 1

processAttrsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected