clearMessages not working Brooklyn

I had below line of snippet to clear the message to show the current error  message to the user but unfortunately after brooklyn release the SKUID is geeting hung at the below line.

var editor =field.component.element.editor;

Can you please confirm if this is really a Brooklyn issue ? If so, what should be my work around.

Thanks In Advance