change of delegateOn handler implementation

Dart change translation to javascript, some previous functions in js
were changed and it influenced results in IE.