@@ -452,14 +452,14 @@ async function ensureOneTypeIndex (context: AuthenticationContext, isPublic: boo
452452 */
453453export async function findAppInstances (
454454 context : AuthenticationContext ,
455- klass : $rdf . NamedNode ,
455+ theClass : $rdf . NamedNode ,
456456 isPublic : boolean
457457) : Promise < AuthenticationContext > {
458458 const fetcher = kb . fetcher
459459 if ( isPublic === undefined ) {
460460 // Then both public and private
461- await findAppInstances ( context , klass , true )
462- await findAppInstances ( context , klass , false )
461+ await findAppInstances ( context , theClass , true )
462+ await findAppInstances ( context , theClass , false )
463463 return context
464464 }
465465
@@ -471,7 +471,7 @@ export async function findAppInstances (
471471 const index = context . index as { [ key : string ] : Array < $rdf . NamedNode > }
472472 const thisIndex = index [ visibility ]
473473 const registrations = thisIndex
474- . map ( ix => kb . each ( undefined , ns . solid ( 'forClass' ) , klass , ix ) )
474+ . map ( ix => kb . each ( undefined , ns . solid ( 'forClass' ) , theClass , ix ) )
475475 . flat ( )
476476 const instances = registrations
477477 . map ( reg => kb . each ( reg , ns . solid ( 'instance' ) ) )
@@ -494,7 +494,7 @@ export async function findAppInstances (
494494 } catch ( err ) {
495495 const e = new Error ( `[FAI] Unable to load containers${ err } ` )
496496 console . log ( e ) // complain
497- widgets . complain ( context , `Error looking for ${ utils . label ( klass ) } : ${ err } ` )
497+ widgets . complain ( context , `Error looking for ${ utils . label ( theClass ) } : ${ err } ` )
498498 // but then ignore it
499499 // throw new Error(e)
500500 }
@@ -530,7 +530,7 @@ function updatePromise (
530530export async function registerInTypeIndex (
531531 context : AuthenticationContext ,
532532 instance : $rdf . NamedNode ,
533- klass : $rdf . NamedNode ,
533+ theClass : $rdf . NamedNode ,
534534 isPublic : boolean
535535) : Promise < AuthenticationContext > {
536536 await ensureOneTypeIndex ( context , isPublic )
@@ -546,7 +546,7 @@ export async function registerInTypeIndex (
546546 const ins = [
547547 // See https://github.com/solid/solid/blob/master/proposals/data-discovery.md
548548 $rdf . st ( registration , ns . rdf ( 'type' ) , ns . solid ( 'TypeRegistration' ) , index ) ,
549- $rdf . st ( registration , ns . solid ( 'forClass' ) , klass , index ) ,
549+ $rdf . st ( registration , ns . solid ( 'forClass' ) , theClass , index ) ,
550550 $rdf . st ( registration , ns . solid ( 'instance' ) , instance , index )
551551 ]
552552 try {
@@ -564,7 +564,7 @@ export async function registerInTypeIndex (
564564export function registrationControl (
565565 context : AuthenticationContext ,
566566 instance ,
567- klass
567+ theClass
568568) : Promise < AuthenticationContext | void > {
569569 const dom = context . dom
570570 if ( ! dom || ! context . div ) {
@@ -584,14 +584,14 @@ export function registrationControl (
584584 const registrations = kb
585585 . each ( undefined , ns . solid ( 'instance' ) , instance )
586586 . filter ( function ( r ) {
587- return kb . holds ( r , ns . solid ( 'forClass' ) , klass )
587+ return kb . holds ( r , ns . solid ( 'forClass' ) , theClass )
588588 } )
589589 const reg = registrations . length
590590 ? registrations [ 0 ]
591591 : widgets . newThing ( index )
592592 return [
593593 $rdf . st ( reg , ns . solid ( 'instance' ) , instance , index ) ,
594- $rdf . st ( reg , ns . solid ( 'forClass' ) , klass , index )
594+ $rdf . st ( reg , ns . solid ( 'forClass' ) , theClass , index )
595595 ]
596596 }
597597
@@ -712,7 +712,7 @@ export function registrationList (context: AuthenticationContext, options: {
712712 }
713713
714714 /*
715- //const containers = kb.each(klass , ns.solid('instanceContainer'));
715+ //const containers = kb.each(theClass , ns.solid('instanceContainer'));
716716 if (containers.length) {
717717 fetcher.load(containers).then(function(xhrs){
718718 for (const i=0; i<containers.length; i++) {
0 commit comments