aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/compile.js
diff options
context:
space:
mode:
authorKindy Lin2013-12-07 00:00:04 +0800
committerPete Bacon Darwin2013-12-18 21:14:09 +0000
commit30252a05049c557cf3c05cdf4a8d36fa9e4ab395 (patch)
tree31084877b1ebbc6a21e640c1a6eea7dc126ad8f5 /src/ng/compile.js
parent3dc18037e8db8766641a4d39f0fee96077db1fcb (diff)
downloadangular.js-30252a05049c557cf3c05cdf4a8d36fa9e4ab395.tar.bz2
docs($compile): fix param name and improve example variable name
Closes #5310
Diffstat (limited to 'src/ng/compile.js')
-rw-r--r--src/ng/compile.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ng/compile.js b/src/ng/compile.js
index 0af76a75..9b7d05aa 100644
--- a/src/ng/compile.js
+++ b/src/ng/compile.js
@@ -469,14 +469,14 @@
* example would not point to the clone, but rather to the original template that was cloned. In
* this case, you can access the clone via the cloneAttachFn:
* <pre>
- * var templateHTML = angular.element('<p>{{total}}</p>'),
+ * var templateElement = angular.element('<p>{{total}}</p>'),
* scope = ....;
*
- * var clonedElement = $compile(templateHTML)(scope, function(clonedElement, scope) {
+ * var clonedElement = $compile(templateElement)(scope, function(clonedElement, scope) {
* //attach the clone to DOM document at the right place
* });
*
- * //now we have reference to the cloned DOM via `clone`
+ * //now we have reference to the cloned DOM via `clonedElement`
* </pre>
*
*
@@ -865,7 +865,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
* @param {DOMElement=} $rootElement If the nodeList is the root of the compilation tree then
* the rootElement must be set the jqLite collection of the compile root. This is
* needed so that the jqLite collection items can be replaced with widgets.
- * @param {number=} max directive priority
+ * @param {number=} maxPriority Max directive priority.
* @returns {?function} A composite linking function of all of the matched directives or null.
*/
function compileNodes(nodeList, transcludeFn, $rootElement, maxPriority, ignoreDirective,