Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit f82430b

Browse files
Merge pull request #1840 from livecode/bugfix-20618
[[ Bug 20618 ]] Make ideDocsFetchLibraryEntries public
2 parents 077850d + c382cbe commit f82430b

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

Toolset/libraries/revidedocumentationlibrary.livecodescript

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -360,19 +360,27 @@ function ideDocsFetchLibraryNames
360360
repeat while tMoreRecords
361361
add 1 to tCount
362362
get revDatabaseColumnNamed(tRecordSet, "library_name", "tData")
363-
put tData into tDataSet[tCount]
363+
put true into tDataSet[tData]
364364
revMoveToNextRecord tRecordSet
365365
put the result into tMoreRecords
366366
end repeat
367-
367+
368368
# Close the record set
369369
revCloseCursor tRecordSet
370-
371-
combine tDataSet with return
370+
371+
combine tDataSet with return as set
372+
sort tDataSet
372373
return tDataSet
373374
end ideDocsFetchLibraryNames
374375

375-
private function ideDocsFetchLibraryEntries pLibraryName
376+
/*
377+
Fetch the data for all entries in a given library
378+
379+
Returns:
380+
A numerically keyed array, each element of which is the array
381+
of data pertaining to an entry in the given library API.
382+
*/
383+
function ideDocsFetchLibraryEntries pLibraryName
376384
return __ideDocsFetchData("", pLibraryName, "")
377385
end ideDocsFetchLibraryEntries
378386

notes/bugfix-20618.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Make ideDocsFetchLibraryEntries public

0 commit comments

Comments
 (0)