| 8211 | } |
| 8212 | |
| 8213 | function 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 | |