Skip to content

Commit f5a577b

Browse files
authored
fix: Add getClass() to FieldColour. (#2506)
1 parent c75ead2 commit f5a577b

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

plugins/field-colour/src/field_colour.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,15 @@ export class FieldColour extends Blockly.Field<string> {
731731
// the static fromJson method.
732732
return new this(options.colour, undefined, options);
733733
}
734+
735+
/**
736+
* Returns the class of this field.
737+
*
738+
* @returns FieldColour.
739+
*/
740+
getClass() {
741+
return FieldColour;
742+
}
734743
}
735744

736745
/** The default value for this field. */

0 commit comments

Comments
 (0)