Skip to content

Commit

Permalink
Remove unused get_widget_class option
Browse files Browse the repository at this point in the history
  • Loading branch information
mbraak committed Feb 2, 2025
1 parent fd05e2d commit 2cde2ee
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/simple.widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,9 @@ const register = (widgetClass: unknown, widgetName: string): void => {
} else if (typeof argument1 === "string" && argument1[0] !== "_") {
const functionName = argument1;

if (functionName === "destroy") {
if (argument1 === "destroy") {
destroyWidget(this);
return undefined;
} else if (functionName === "get_widget_class") {
return widgetClass;
} else {
return callFunction(this, functionName, args);
}
Expand Down

0 comments on commit 2cde2ee

Please sign in to comment.