Is #updateAjaxAttributes() needed or not ?
If it is not needed then just remove this commented code.