mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-08 09:55:32 +00:00
A couple minor tweaks.
This commit is contained in:
parent
dfc44c4214
commit
5afeed8eb6
2 changed files with 3 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue