We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2d358e1 + dbcc00e commit f0246d3Copy full SHA for f0246d3
src/main/scala/scala/swing/Publisher.scala
@@ -44,7 +44,7 @@ trait Publisher extends Reactor {
44
/**
45
* Notify all registered reactions.
46
*/
47
- def publish(e: Event) { for (l <- listeners) l(e) }
+ def publish(e: Event) { for (l <- listeners) if (l.isDefinedAt(e)) l(e) }
48
49
listenTo(this)
50
}
0 commit comments