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 d4ae995e05..f79e1e3b85 100644 --- a/web/source/kmwbase.ts +++ b/web/source/kmwbase.ts @@ -60,7 +60,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; @@ -105,7 +105,7 @@ class KeymanBase { this.util = this['util'] = new Util(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; @@ -125,7 +125,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}); } }