Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit dc3955c

Browse files
committedMay 15, 2018
style(validators): add an arbitrary jsdoc comment to fix closure compiler builds
Closure compiler complains that the factory function for these validator directives do not have the parameter documented in the preceding jsdoc comment. These comments are actually describing the directives and not their factory functions and so have `@param` tags that do not match the factory function signature. This change adds a simple empty(ish) jsdoc comment between the directive's jsdoc comment and the factory function, which silences the error from the closure compiler. Luckily the ngdoc processing does not require these jsdoc comments to be attached to any code items, so that is not affected by this change.
1 parent 9a37379 commit dc3955c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎src/ng/directive/validators.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
});
6262
* </file>
6363
* </example>
64-
*/
64+
*/ /** CLOSURE HACK COMMENT */
6565
var requiredDirective = function() {
6666
return {
6767
restrict: 'A',
@@ -161,7 +161,7 @@ var requiredDirective = function() {
161161
});
162162
* </file>
163163
* </example>
164-
*/
164+
*/ /** CLOSURE HACK COMMENT */
165165
var patternDirective = function() {
166166
return {
167167
restrict: 'A',
@@ -263,7 +263,7 @@ var patternDirective = function() {
263263
});
264264
* </file>
265265
* </example>
266-
*/
266+
*/ /** CLOSURE HACK COMMENT */
267267
var maxlengthDirective = function() {
268268
return {
269269
restrict: 'A',
@@ -352,7 +352,7 @@ var maxlengthDirective = function() {
352352
});
353353
* </file>
354354
* </example>
355-
*/
355+
*/ /** CLOSURE HACK COMMENT */
356356
var minlengthDirective = function() {
357357
return {
358358
restrict: 'A',

0 commit comments

Comments
 (0)
This repository has been archived.