diff options
| author | Peter Bacon Darwin | 2014-02-26 11:46:02 +0000 | 
|---|---|---|
| committer | Peter Bacon Darwin | 2014-02-26 11:47:22 +0000 | 
| commit | 332e935048d161764046b43fe6599e1db2afc3b6 (patch) | |
| tree | e560b374b78b75e9bf27d67dbf8d5f2de6598f2d /src/ng/compile.js | |
| parent | 30c8207e0f2e10a6f02a0c2ba16825ad27092108 (diff) | |
| download | angular.js-332e935048d161764046b43fe6599e1db2afc3b6.tar.bz2 | |
docs(*): fix jsdoc type expressions
These errors in the docs were preventing some parts of the docs from being
parsed.
Diffstat (limited to 'src/ng/compile.js')
| -rw-r--r-- | src/ng/compile.js | 16 | 
1 files changed, 8 insertions, 8 deletions
| diff --git a/src/ng/compile.js b/src/ng/compile.js index 0265beb4..13e79b24 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -440,10 +440,10 @@   *   *   * @param {string|DOMElement} element Element or HTML string to compile into a template function. - * @param {function(angular.Scope[, cloneAttachFn]} transclude function available to directives. + * @param {function(angular.Scope, cloneAttachFn=)} transclude function available to directives.   * @param {number} maxPriority only apply directives lower then given priority (Only effects the   *                 root element(s), not their children) - * @returns {function(scope[, cloneAttachFn])} a link function which is used to bind template + * @returns {function(scope, cloneAttachFn=)} a link function which is used to bind template   * (a DOM element/tree) to a scope. Where:   *   *  * `scope` - A {@link ng.$rootScope.Scope Scope} to bind to. @@ -521,7 +521,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {     * @param {string|Object} name Name of the directive in camel-case (i.e. <code>ngBind</code> which     *    will match as <code>ng-bind</code>), or an object map of directives where the keys are the     *    names and the values are the factories. -   * @param {function|Array} directiveFactory An injectable directive factory function. See +   * @param {Function|Array} directiveFactory An injectable directive factory function. See     *    {@link guide/directive} for more info.     * @returns {ng.$compileProvider} Self for chaining.     */ @@ -868,13 +868,13 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {       * function, which is the a linking function for the node.       *       * @param {NodeList} nodeList an array of nodes or NodeList to compile -     * @param {function(angular.Scope[, cloneAttachFn]} transcludeFn A linking function, where the +     * @param {function(angular.Scope, cloneAttachFn=)} transcludeFn A linking function, where the       *        scope argument is auto-generated to the new child of the transcluded parent scope.       * @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=} maxPriority Max directive priority. -     * @returns {?function} A composite linking function of all of the matched directives or null. +     * @returns {Function} A composite linking function of all of the matched directives or null.       */      function compileNodes(nodeList, transcludeFn, $rootElement, maxPriority, ignoreDirective,                              previousCompileContext) { @@ -1118,7 +1118,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {       *        this needs to be pre-sorted by priority order.       * @param {Node} compileNode The raw DOM node to apply the compile functions to       * @param {Object} templateAttrs The shared attribute function -     * @param {function(angular.Scope[, cloneAttachFn]} transcludeFn A linking function, where the +     * @param {function(angular.Scope, cloneAttachFn=)} transcludeFn A linking function, where the       *                                                  scope argument is auto-generated to the new       *                                                  child of the transcluded parent scope.       * @param {JQLite} jqCollection If we are working on the root of the compile tree then this @@ -1130,7 +1130,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {       * @param {Array.<Function>} postLinkFns       * @param {Object} previousCompileContext Context used for previous compilation of the current       *                                        node -     * @returns linkFn +     * @returns {Function} linkFn       */      function applyDirectivesToNode(directives, compileNode, templateAttrs, transcludeFn,                                     jqCollection, originalReplaceDirective, preLinkFns, postLinkFns, @@ -1576,7 +1576,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {       *   * `A': attribute       *   * `C`: class       *   * `M`: comment -     * @returns true if directive was added. +     * @returns {boolean} true if directive was added.       */      function addDirective(tDirectives, name, location, maxPriority, ignoreDirective, startAttrName,                            endAttrName) { | 
