A couple minor tweaks.

This commit is contained in:
Joshua A. Horton 2017-12-22 14:40:35 +07:00
parent efbd5b39a6
commit 98a8de13bd
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

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