Affects Version/s: 6.1.20 EE GA2
Fix Version/s: None
Currently we have two main objects in Liferay:
The Liferay object, and the cached AUI instance that's returned by AUI() (represented by the A variable inside of modules and use() callbacks).
This can be confusing at times, for instance:
In that case we're using the A instance, but then for some Liferay specific things not on the A instance, we use Liferay.
Instead, what we want to do is make Liferay actually be the publicly exposed variable for the cached instance. So rather than having to do AUI().one('#div') to do something outside of the callback, you would do: Liferay.one('#div').
There are multiple goals, short and long term, for this change:
1. Consolidate and remove all global Liferay variables outside of Liferay, such as themeDisplay and submitForm, and instead expose them as Liferay.ThemeDisplay and Liferay.submitForm