440440 *
441441 *
442442 * @param {string|DOMElement } element Element or HTML string to compile into a template function.
443- * @param {function(angular.Scope[ , cloneAttachFn] } transclude function available to directives.
443+ * @param {function(angular.Scope, cloneAttachFn=) } transclude function available to directives.
444444 * @param {number } maxPriority only apply directives lower then given priority (Only effects the
445445 * root element(s), not their children)
446- * @returns {function(scope[ , cloneAttachFn] ) } a link function which is used to bind template
446+ * @returns {function(scope, cloneAttachFn= ) } a link function which is used to bind template
447447 * (a DOM element/tree) to a scope. Where:
448448 *
449449 * * `scope` - A {@link ng.$rootScope.Scope Scope} to bind to.
@@ -521,7 +521,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
521521 * @param {string|Object } name Name of the directive in camel-case (i.e. <code>ngBind</code> which
522522 * will match as <code>ng-bind</code>), or an object map of directives where the keys are the
523523 * names and the values are the factories.
524- * @param {function |Array } directiveFactory An injectable directive factory function. See
524+ * @param {Function |Array } directiveFactory An injectable directive factory function. See
525525 * {@link guide/directive} for more info.
526526 * @returns {ng.$compileProvider } Self for chaining.
527527 */
@@ -868,13 +868,13 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
868868 * function, which is the a linking function for the node.
869869 *
870870 * @param {NodeList } nodeList an array of nodes or NodeList to compile
871- * @param {function(angular.Scope[ , cloneAttachFn] } transcludeFn A linking function, where the
871+ * @param {function(angular.Scope, cloneAttachFn=) } transcludeFn A linking function, where the
872872 * scope argument is auto-generated to the new child of the transcluded parent scope.
873873 * @param {DOMElement= } $rootElement If the nodeList is the root of the compilation tree then
874874 * the rootElement must be set the jqLite collection of the compile root. This is
875875 * needed so that the jqLite collection items can be replaced with widgets.
876876 * @param {number= } maxPriority Max directive priority.
877- * @returns {?function } A composite linking function of all of the matched directives or null.
877+ * @returns {Function } A composite linking function of all of the matched directives or null.
878878 */
879879 function compileNodes ( nodeList , transcludeFn , $rootElement , maxPriority , ignoreDirective ,
880880 previousCompileContext ) {
@@ -1118,7 +1118,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
11181118 * this needs to be pre-sorted by priority order.
11191119 * @param {Node } compileNode The raw DOM node to apply the compile functions to
11201120 * @param {Object } templateAttrs The shared attribute function
1121- * @param {function(angular.Scope[ , cloneAttachFn] } transcludeFn A linking function, where the
1121+ * @param {function(angular.Scope, cloneAttachFn=) } transcludeFn A linking function, where the
11221122 * scope argument is auto-generated to the new
11231123 * child of the transcluded parent scope.
11241124 * @param {JQLite } jqCollection If we are working on the root of the compile tree then this
@@ -1130,7 +1130,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
11301130 * @param {Array.<Function> } postLinkFns
11311131 * @param {Object } previousCompileContext Context used for previous compilation of the current
11321132 * node
1133- * @returns linkFn
1133+ * @returns { Function } linkFn
11341134 */
11351135 function applyDirectivesToNode ( directives , compileNode , templateAttrs , transcludeFn ,
11361136 jqCollection , originalReplaceDirective , preLinkFns , postLinkFns ,
@@ -1576,7 +1576,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
15761576 * * `A': attribute
15771577 * * `C`: class
15781578 * * `M`: comment
1579- * @returns true if directive was added.
1579+ * @returns { boolean } true if directive was added.
15801580 */
15811581 function addDirective ( tDirectives , name , location , maxPriority , ignoreDirective , startAttrName ,
15821582 endAttrName ) {
0 commit comments