File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ module.exports.options = {
9
9
checkAnnotations : true
10
10
} ;
11
11
12
- var tags ;
13
-
14
12
/**
15
13
* @param {Object } options
16
14
*/
@@ -35,7 +33,7 @@ validateAnnotations.configure = function(options) {
35
33
} ) ;
36
34
}
37
35
38
- tags = Object . create ? Object . create ( null ) : { } ;
36
+ var tags = this . _tags = Object . create ? Object . create ( null ) : { } ;
39
37
40
38
if ( o === true ) {
41
39
Object . keys ( availablePresets ) . forEach ( function ( preset ) {
@@ -72,6 +70,7 @@ validateAnnotations.configure = function(options) {
72
70
*/
73
71
function validateAnnotations ( file , errors ) {
74
72
var comments = file . getComments ( ) ;
73
+ var tags = this . _tags ;
75
74
comments . forEach ( function ( commentNode ) {
76
75
if ( commentNode . type !== 'Block' || commentNode . value [ 0 ] !== '*' ) {
77
76
return ;
You can’t perform that action at this time.
0 commit comments