MDL-44637 events: Update to the YUI code to comply with the coding style.