Skip to content

Commit

Permalink
Clarify the meaning of empty
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremywiebe committed Nov 30, 2024
1 parent 7c2df1a commit 980eedd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/perseus/src/renderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1595,7 +1595,10 @@ class Renderer
};

/**
* Returns an array of widget ids that are empty.
* Returns an array of widget ids that are empty (meaning widgets where the
* learner has not interacted with the widget yet or has not filled in all
* fields). For example, the `interactive-graph` widget is considered
* empty if the graph is in the starting state.
*/
emptyWidgets(): ReadonlyArray<string> {
return emptyWidgetsFunctional(
Expand Down

0 comments on commit 980eedd

Please sign in to comment.