File tree Expand file tree Collapse file tree 5 files changed +11
-10
lines changed Expand file tree Collapse file tree 5 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 7
7
/wiseService /vueapp /dist /
8
8
/wiseService /node_modules
9
9
/wiseService /sprintf.js
10
+ /wiseService /example.source.js
10
11
/viewer /vueapp /build /
11
12
/viewer /vueapp /config /
12
13
/viewer /vueapp /dist /
Original file line number Diff line number Diff line change 53
53
"vuex" : " ^3.0.1"
54
54
},
55
55
"scripts" : {
56
- "lint" : " eslint --ext .js,.vue parliament viewer notifiers" ,
56
+ "lint" : " eslint --ext .js,.vue parliament viewer notifiers wiseService " ,
57
57
"lint-viewer" : " eslint --ext .js,.vue viewer" ,
58
58
"lint-parliament" : " eslint --ext .js,.vue parliament" ,
59
59
"lint-wise" : " eslint --ext .js,.vue wiseService" ,
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ SimpleSource.prototype.initSimple = function () {
93
93
// ----------------------------------------------------------------------------
94
94
SimpleSource . prototype . getTypes = function ( ) {
95
95
return [ this . type ] ;
96
- }
96
+ } ;
97
97
// ----------------------------------------------------------------------------
98
98
SimpleSource . prototype . load = function ( ) {
99
99
var setFunc ;
Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ internals.sourceApi = {
308
308
}
309
309
src . getTypes = function ( ) {
310
310
return types ;
311
- }
311
+ } ;
312
312
}
313
313
314
314
for ( let i = 0 ; i < types . length ; i ++ ) {
@@ -426,8 +426,8 @@ function funcName (typeName) {
426
426
}
427
427
// ----------------------------------------------------------------------------
428
428
// This function adds a new type to the internals.types map of types.
429
- // If src is defined will add it to already defined types as src to query.
430
- function addType ( type , src ) {
429
+ // If newSrc is defined will add it to already defined types as src to query.
430
+ function addType ( type , newSrc ) {
431
431
let typeInfo = internals . types [ type ] ;
432
432
if ( ! typeInfo ) {
433
433
typeInfo = internals . types [ type ] = {
@@ -477,9 +477,9 @@ function addType(type, src) {
477
477
} else {
478
478
typeInfo . excludes = items . split ( ';' ) . map ( item => item . trim ( ) ) . filter ( item => item !== '' ) . map ( item => RegExp . fromWildExp ( item , 'ailop' ) ) ;
479
479
}
480
- } else if ( src !== undefined ) {
481
- typeInfo . sources . push ( src ) ;
482
- src . srcInProgress [ type ] = [ ] ;
480
+ } else if ( newSrc !== undefined ) {
481
+ typeInfo . sources . push ( newSrc ) ;
482
+ newSrc . srcInProgress [ type ] = [ ] ;
483
483
}
484
484
return typeInfo ;
485
485
}
Original file line number Diff line number Diff line change @@ -382,8 +382,8 @@ WISESource.prototype.typeSetting = function () {
382
382
this . typeFunc = this . api . funcName ( this . type ) ;
383
383
if ( this . getTypes === undefined ) {
384
384
this . getTypes = function ( ) {
385
- return [ src . type ] ;
386
- }
385
+ return [ this . type ] ;
386
+ } ;
387
387
}
388
388
} ;
389
389
// ----------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments