440
440
*
441
441
*
442
442
* @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.
444
444
* @param {number } maxPriority only apply directives lower then given priority (Only effects the
445
445
* 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
447
447
* (a DOM element/tree) to a scope. Where:
448
448
*
449
449
* * `scope` - A {@link ng.$rootScope.Scope Scope} to bind to.
@@ -521,7 +521,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
521
521
* @param {string|Object } name Name of the directive in camel-case (i.e. <code>ngBind</code> which
522
522
* will match as <code>ng-bind</code>), or an object map of directives where the keys are the
523
523
* 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
525
525
* {@link guide/directive} for more info.
526
526
* @returns {ng.$compileProvider } Self for chaining.
527
527
*/
@@ -868,13 +868,13 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
868
868
* function, which is the a linking function for the node.
869
869
*
870
870
* @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
872
872
* scope argument is auto-generated to the new child of the transcluded parent scope.
873
873
* @param {DOMElement= } $rootElement If the nodeList is the root of the compilation tree then
874
874
* the rootElement must be set the jqLite collection of the compile root. This is
875
875
* needed so that the jqLite collection items can be replaced with widgets.
876
876
* @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.
878
878
*/
879
879
function compileNodes ( nodeList , transcludeFn , $rootElement , maxPriority , ignoreDirective ,
880
880
previousCompileContext ) {
@@ -1118,7 +1118,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1118
1118
* this needs to be pre-sorted by priority order.
1119
1119
* @param {Node } compileNode The raw DOM node to apply the compile functions to
1120
1120
* @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
1122
1122
* scope argument is auto-generated to the new
1123
1123
* child of the transcluded parent scope.
1124
1124
* @param {JQLite } jqCollection If we are working on the root of the compile tree then this
@@ -1130,7 +1130,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1130
1130
* @param {Array.<Function> } postLinkFns
1131
1131
* @param {Object } previousCompileContext Context used for previous compilation of the current
1132
1132
* node
1133
- * @returns linkFn
1133
+ * @returns { Function } linkFn
1134
1134
*/
1135
1135
function applyDirectivesToNode ( directives , compileNode , templateAttrs , transcludeFn ,
1136
1136
jqCollection , originalReplaceDirective , preLinkFns , postLinkFns ,
@@ -1576,7 +1576,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1576
1576
* * `A': attribute
1577
1577
* * `C`: class
1578
1578
* * `M`: comment
1579
- * @returns true if directive was added.
1579
+ * @returns { boolean } true if directive was added.
1580
1580
*/
1581
1581
function addDirective ( tDirectives , name , location , maxPriority , ignoreDirective , startAttrName ,
1582
1582
endAttrName ) {
0 commit comments