Explorar o código

Updated statement to use typeName property

Jordan Kintzle %!s(int64=4) %!d(string=hai) anos
pai
achega
15df00d6de
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;