mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-19 14:17:40 +00:00
Fixes #1638.
This commit is contained in:
parent
3d8f605186
commit
72bdc8d2de
2 changed files with 8 additions and 7 deletions
|
|
@ -12,13 +12,14 @@
|
|||
(function() {
|
||||
let prototype = com.keyman.Util.prototype;
|
||||
|
||||
var publishAPI = function(miniName: string, longName: string) {
|
||||
prototype[miniName] = prototype[longName];
|
||||
var publishAPI = function(legacyName: string, name: string) {
|
||||
prototype[legacyName] = prototype[name];
|
||||
}
|
||||
|
||||
publishAPI('getAbsoluteX', "_GetAbsoluteX");
|
||||
publishAPI("getAbsoluteY", "_GetAbsoluteY");
|
||||
publishAPI("getAbsolute", "_GetAbsolute");
|
||||
// These four were renamed, but we need to maintain their legacy names.
|
||||
publishAPI("_GetAbsoluteX", 'getAbsoluteX');
|
||||
publishAPI("_GetAbsoluteY", "getAbsoluteY");
|
||||
publishAPI("_GetAbsolute", "getAbsolute");
|
||||
publishAPI("toNzString", "nzString");
|
||||
}());
|
||||
|
||||
|
|
|
|||
|
|
@ -281,7 +281,7 @@ namespace com.keyman {
|
|||
* @return {Object.<string,number>}
|
||||
* Description Returns absolute position of Pobj element with respect to page
|
||||
*/
|
||||
_GetAbsolute(Pobj: HTMLElement) {
|
||||
getAbsolute(Pobj: HTMLElement) {
|
||||
var p={
|
||||
/* @ export */
|
||||
x: this.getAbsoluteX(Pobj),
|
||||
|
|
@ -292,7 +292,7 @@ namespace com.keyman {
|
|||
}
|
||||
|
||||
// Unofficial API used by our desktop UIs.
|
||||
getAbsolute = this._GetAbsolute;
|
||||
_GetAbsolute = this.getAbsolute;
|
||||
|
||||
/**
|
||||
* Select start handler (to replace multiple inline handlers) (Build 360)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue