diff --git a/web/source/kmwapi.ts b/web/source/kmwapi.ts index b69737c2cc..6565a1c9cb 100644 --- a/web/source/kmwapi.ts +++ b/web/source/kmwapi.ts @@ -14,10 +14,6 @@ * code lines. */ -// kmwbase.ts -goog.exportProperty(keyman, "build", keyman); // Only works on individual instances. -goog.exportSymbol("KeymanBase.prototype.isFontAvailable", KeymanBase.prototype.isFontAvailable); - // Util.ts goog.exportSymbol("Device", Device); diff --git a/web/source/kmwbase.ts b/web/source/kmwbase.ts index 4bf4193e3c..2f3735a95d 100644 --- a/web/source/kmwbase.ts +++ b/web/source/kmwbase.ts @@ -52,7 +52,7 @@ class KeymanBase { modStateFlags = 0; // Tracks the present state of the physical keyboard's active modifier flags. Needed for AltGr simulation. initialized: number; // Signals the initialization state of the KeymanWeb system. - __BUILD__ = 300; // TS needs this to be defined within the class. + 'build' = 300; // TS needs this to be defined within the class. // Used as placeholders during initialization. // The corresponding class properties should be dropped after a refactor; @@ -100,7 +100,7 @@ class KeymanBase { this.keyboardManager = new KeyboardManager(this); // Load properties from their static variants. - this.__BUILD__ = KeymanBase.__BUILD__; + this['build'] = KeymanBase.__BUILD__; this.srcPath = KeymanBase._srcPath; this.rootPath = KeymanBase._rootPath; this.protocol = KeymanBase._protocol; @@ -120,7 +120,7 @@ class KeymanBase { * @param {string} fName font-family name * @return {boolean} true if available **/ - isFontAvailable(fName: string): boolean { + ['isFontAvailable'](fName: string): boolean { return this.util.checkFont({'family':fName}); } }