Open
Description
This issue was originally filed by googlegroups...@kaioa.com
import 'dart:html';
void main() {
print(document.onClick.runtimeType);
// _EventStream
print(document.body.onClick.runtimeType);
// _ElementEventStreamImpl
}
With jQuery, event delegation also works if you use document
instead of document.body
. With Dart, this doesn't work.
document.onClick
(EventStream) doesn't have a "matches" function.