Kephra / lib / Kephra / API / Docs.pm

Diff from to

lib/Kephra/API/Docs.pm

 	Kephra::Log::warning('need a ' . DOC_CLASS . " thats in stash, not $doc!", 1)
 		unless ref $doc and $doc->isa( DOC_CLASS );
 	$document{'ID'}  {$lowest_free_ID} = $doc;
-	for my $docbar (keys $doc->panel){
-		$document{'panel'} {$doc->panel->{$docbar} } = $doc if $doc->panel->{$docbar};
-		$document{'editor'}{$doc->editor->{$docbar}} = $doc if $doc->editor->{$docbar};
-	}
+	$document{'panel'}{$_} = $doc for values $doc->panel;
+	$document{'editor'}{$_} = $doc for values $doc->editor;
 	$document{'file'}{$doc->file_path} = $doc if $doc->file_path;
 	$lowest_free_ID++;
 }
 	Kephra::Log::warning('need a ' . DOC_CLASS . ' thats in stash, not $doc!', 1)
 		unless ref $doc and $doc->isa( DOC_CLASS );
 	delete $document{'ID'}{$doc->ID};
-	delete $document{'panel'}{$doc->panel}    if $doc->panel;
-	delete $document{'editor'}{$doc->editor}  if $doc->editor;
+#	delete $document{'panel'}{$_}    for values $doc->panel;
+#	delete $document{'editor'}{$_}   for values $doc->editor;
 	delete $document{'file'}{$doc->file_path} if $doc->file_path;
 #say "removed $doc ", scalar keys %{$document{'ID'}}, ' ',scalar keys %{$document{'file'}}; 
-
 }
 
-
 sub find {
 	my $any = shift;
 	Kephra::Log::warning("need a parameter!", 1) unless defined $any and $any;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.