IITC

Namespaces

chat

comm

filters

map

portal

search

smartphone

statusbar

toolbox

utils

Methods

static registerLegacyAliases(namespace, mappings)

Registers backward-compatibility aliases on window for functions that have moved into an IITC.* namespace.

For each [oldName, newName] pair it ensures namespace[newName] exists and defines a getter/setter on window[oldName] that stays in sync with namespace[newName]. This keeps legacy code that reads or overrides the old global working after a function has been moved into a namespace.

Parameters:
Name Type Description
namespace Object

Target namespace object holding the functions under their new names.

mappings Object.<string, string>

Map of legacy global name to the new name within namespace.