diff options
Diffstat (limited to 'src/ng/compile.js')
| -rw-r--r-- | src/ng/compile.js | 8 |
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, |
