Skip to content

Commit 089e9b0

Browse files
committed
revert config._terminalDirectives
1 parent 4801d7a commit 089e9b0

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

src/compiler/compile.js

+8-3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ var templateParser = require('../parsers/template')
88
var propDef = require('../directives/prop')
99
var componentDef = require('../directives/component')
1010

11+
// terminal directives
12+
var terminalDirectives = [
13+
'repeat',
14+
'if'
15+
]
16+
1117
module.exports = compile
1218

1319
/**
@@ -498,10 +504,9 @@ function checkTerminalDirectives (el, options) {
498504
return skip
499505
}
500506
var value, dirName
501-
var dirs = config._terminalDirectives
502507
/* 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]
505510
if ((value = _.attr(el, dirName)) !== null) {
506511
return makeTerminalNodeLinkFn(el, dirName, value, options)
507512
}

src/config.js

+1-11
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,7 @@ module.exports = {
6262
* @type {Boolean}
6363
*/
6464

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
7666

7767
}
7868

0 commit comments

Comments
 (0)