| 8205 | } |
| 8206 | |
| 8207 | function 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 | |