(el)
| 9959 | } |
| 9960 | |
| 9961 | function processKey (el) { |
| 9962 | var exp = getBindingAttr(el, 'key'); |
| 9963 | if (exp) { |
| 9964 | { |
| 9965 | if (el.tag === 'template') { |
| 9966 | warn$2( |
| 9967 | "<template> cannot be keyed. Place the key on real elements instead.", |
| 9968 | getRawBindingAttr(el, 'key') |
| 9969 | ); |
| 9970 | } |
| 9971 | if (el.for) { |
| 9972 | var iterator = el.iterator2 || el.iterator1; |
| 9973 | var parent = el.parent; |
| 9974 | if (iterator && iterator === exp && parent && parent.tag === 'transition-group') { |
| 9975 | warn$2( |
| 9976 | "Do not use v-for index as key on <transition-group> children, " + |
| 9977 | "this is the same as not using keys.", |
| 9978 | getRawBindingAttr(el, 'key'), |
| 9979 | true /* tip */ |
| 9980 | ); |
| 9981 | } |
| 9982 | } |
| 9983 | } |
| 9984 | el.key = exp; |
| 9985 | } |
| 9986 | } |
| 9987 | |
| 9988 | function processRef (el) { |
| 9989 | var ref = getBindingAttr(el, 'ref'); |
no test coverage detected