Browse Source

Updated statement to use typeName property

Jordan Kintzle 4 years ago
parent
commit
15df00d6de
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gui/src/2D/controls/toggleButton.ts

+ 1 - 1
gui/src/2D/controls/toggleButton.ts

@@ -123,7 +123,7 @@ export class ToggleButton extends Rectangle {
             // If this toggle button has a group, set other toggle buttons in the group to inactive.
             this._host.executeOnAllControls((control) => {
                 // Check for control type ToggleButton
-                if ((<any>control)._getTypeName === "ToggleButton") {
+                if (control.typeName === "ToggleButton") {
                     // Don't do anything to this toggle button
                     if (control === this) {
                         return;