Liferay uses alloy-ui (also referred to asAUI
) library developed on top of Yahoo UI (also referred to as yui) library.
The instance terms for both these libraries are different i.e. AUI
for Alloy-UI and YUI
for the other.
Replacing these terms in your code will resolve your issue i.e. have AUI
instead of YUI
.