ipeychev/liferay-portal — comment on commit d90f07207142b1f125a83f9ba080f92295c552e0
File: portal-web/docroot/html/js/liferay/portlet.js line 310
By natecavanaugh:

1. We don't need to create a whole new node then set the contents of it, only to place it after the placeholder.
placeAfter will do all of it in one pass, so this should be changed to just:
placeHolder.hide();
placeHolder.placeAfter('

' + Liferay.Language.get('there-was-an-unexpected-error-please-refresh-the-current-page') + '

');

2. Also, failure should be placed above success to keep methods and properties in alphabetical order.