Skip to content

Commit 6b6402b

Browse files
committed
comments
1 parent 7223cf3 commit 6b6402b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/compiler/compile.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,13 @@ var terminalDirectives = [
1818
/**
1919
* Compile a template and return a reusable composite link
2020
* function, which recursively contains more link functions
21-
* inside. This top level compile function should only be
22-
* called on instance root nodes.
21+
* inside. This top level compile function would normally
22+
* be called on instance root nodes, but can also be used
23+
* for partial compilation if the partial argument is true.
24+
*
25+
* The returned composite link function, when called, will
26+
* return an unlink function that tearsdown all directives
27+
* created during the linking phase.
2328
*
2429
* @param {Element|DocumentFragment} el
2530
* @param {Object} options
@@ -713,4 +718,4 @@ function directiveComparator (a, b) {
713718
a = a.def.priority || 0
714719
b = b.def.priority || 0
715720
return a > b ? 1 : -1
716-
}
721+
}

0 commit comments

Comments
 (0)