onRender event for buttons

I’ve attached a method to the onRender event of an element. In that method, event.getRecord() returns the record, but if the element is a button, it returns null. In v6 it always returns the record, is it a bug in v7.3?