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

Function checkForAliasModel

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

Source from the content-addressed store, hash-verified

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

Callers 1

processAttrsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected