Przeglądaj źródła

Fix naming issue

David Catuhe 7 lat temu
rodzic
commit
43ef01a08a

+ 2 - 2
gui/src/2D/controls/control.ts

@@ -750,7 +750,7 @@ export class Control {
      * @param container defines the container to look for
      * @returns true if the container is one of the ascendant of the control
      */
-    public IsAscendant(container: Container): boolean {
+    public isAscendant(container: Container): boolean {
         if (!this.parent) {
             return false;
         }
@@ -759,7 +759,7 @@ export class Control {
             return true;
         }
 
-        return this.parent.IsAscendant(container);
+        return this.parent.isAscendant(container);
     }
 
     /** 

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

@@ -294,7 +294,7 @@ export class InputText extends Control implements IFocusableControl {
         // Different hosts
         const otherHost = this._connectedVirtualKeyboard._host;
 
-        if (otherHost._lastControlOver[pointerId] && otherHost._lastControlOver[pointerId].IsAscendant(this._connectedVirtualKeyboard)) {
+        if (otherHost._lastControlOver[pointerId] && otherHost._lastControlOver[pointerId].isAscendant(this._connectedVirtualKeyboard)) {
             return true;
         }