Page 1 of 1

Multiple handlers on same control

Posted: 30 May 2016
by Alexey Babin
What happens if I bind two event handlers to the same event for the same element?

For example:

fd.field('FieldName').click(.../*Busines logic code*/...);

fd.field('FieldName').click(.../*a.e. validation*/...);

Does the last handler "win", or will both handlers be run?

Re: Multiple handlers on same control

Posted: 31 May 2016
by rostislav
Event handlers will all be executed in the order they were added.