This commit is contained in:
Joshua A. Horton 2019-03-07 09:31:34 +07:00
parent 3d8f605186
commit 72bdc8d2de
2 changed files with 8 additions and 7 deletions

View file

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

View file

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