Namespaces
Methods
-
static registerLegacyAliases(namespace, mappings)
-
Registers backward-compatibility aliases on
windowfor functions that have moved into anIITC.*namespace.For each
[oldName, newName]pair it ensuresnamespace[newName]exists and defines a getter/setter onwindow[oldName]that stays in sync withnamespace[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 namespaceObject Target namespace object holding the functions under their new names.
mappingsObject.<string, string> Map of legacy global name to the new name within
namespace.