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

Function checkForAliasModel

static/vuejs/vue.js:8207–8221  ·  view source on GitHub ↗
(el, value)

Source from the content-addressed store, hash-verified

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

Callers 1

processAttrsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected