File tree 2 files changed +9
-14
lines changed
2 files changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,12 @@ var templateParser = require('../parsers/template')
8
8
var propDef = require ( '../directives/prop' )
9
9
var componentDef = require ( '../directives/component' )
10
10
11
+ // terminal directives
12
+ var terminalDirectives = [
13
+ 'repeat' ,
14
+ 'if'
15
+ ]
16
+
11
17
module . exports = compile
12
18
13
19
/**
@@ -498,10 +504,9 @@ function checkTerminalDirectives (el, options) {
498
504
return skip
499
505
}
500
506
var value , dirName
501
- var dirs = config . _terminalDirectives
502
507
/* jshint boss: true */
503
- for ( var i = 0 , l = dirs . length ; i < l ; i ++ ) {
504
- dirName = dirs [ i ]
508
+ for ( var i = 0 , l = terminalDirectives . length ; i < l ; i ++ ) {
509
+ dirName = terminalDirectives [ i ]
505
510
if ( ( value = _ . attr ( el , dirName ) ) !== null ) {
506
511
return makeTerminalNodeLinkFn ( el , dirName , value , options )
507
512
}
Original file line number Diff line number Diff line change @@ -62,17 +62,7 @@ module.exports = {
62
62
* @type {Boolean }
63
63
*/
64
64
65
- _delimitersChanged : true ,
66
-
67
- /**
68
- * List of directives that are "terminal", i.e. handles
69
- * the compilation of its own content
70
- */
71
-
72
- _terminalDirectives : [
73
- 'repeat' ,
74
- 'if'
75
- ]
65
+ _delimitersChanged : true
76
66
77
67
}
78
68
You can’t perform that action at this time.
0 commit comments