We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd9015b commit 1d43db9Copy full SHA for 1d43db9
src/compiler/compile.js
@@ -236,13 +236,16 @@ function compileNode (node, options) {
236
*/
237
238
function compileElement (el, options) {
239
+ var linkFn
240
var hasAttrs = el.hasAttributes()
- // check element directives
241
- var linkFn = checkElementDirectives(el, options)
242
// check terminal directives (repeat & if)
243
- if (!linkFn && hasAttrs) {
+ if (hasAttrs) {
244
linkFn = checkTerminalDirectives(el, options)
245
}
+ // check element directives
246
+ if (!linkFn) {
247
+ linkFn = checkElementDirectives(el, options)
248
+ }
249
// check component
250
if (!linkFn) {
251
linkFn = checkComponent(el, options, hasAttrs)
0 commit comments