A couple minor tweaks.

This commit is contained in:
Joshua A. Horton 2017-12-22 14:40:35 +07:00
parent dfc44c4214
commit 5afeed8eb6
2 changed files with 3 additions and 7 deletions

View file

@ -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);

View file

@ -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});
}
}