summaryrefslogtreecommitdiff
path: root/src/swing
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-12-11 19:42:33 +0100
committerJason Zaugg <jzaugg@gmail.com>2013-12-11 19:42:33 +0100
commite1c6dd965aa4249f715bbb2832df182cc5505853 (patch)
tree840a092abc16563b9f83b6b3a24556ad91ba67e7 /src/swing
parent18fd31d2b58e6e14cbd49d8e20ba05d05165eb4b (diff)
parent0c927046dc5df974e6c39187107cf3548825282b (diff)
downloadscala-e1c6dd965aa4249f715bbb2832df182cc5505853.tar.gz
scala-e1c6dd965aa4249f715bbb2832df182cc5505853.tar.bz2
scala-e1c6dd965aa4249f715bbb2832df182cc5505853.zip
Merge commit '0c92704' into merge/2.10.x-to-master
Conflicts: bincompat-forward.whitelist.conf src/interactive/scala/tools/nsc/interactive/Global.scala test/files/presentation/scope-completion-2.check test/files/presentation/scope-completion-3.check test/files/presentation/scope-completion-import.check Conflicts in the scope completion tests handled with the help of @skyluc in https://github.com/scala/scala/pull/3264
Diffstat (limited to 'src/swing')
-rw-r--r--src/swing/scala/swing/Publisher.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/swing/scala/swing/Publisher.scala b/src/swing/scala/swing/Publisher.scala
index 96207de808..578ef71e09 100644
--- a/src/swing/scala/swing/Publisher.scala
+++ b/src/swing/scala/swing/Publisher.scala
@@ -44,7 +44,7 @@ trait Publisher extends Reactor {
/**
* Notify all registered reactions.
*/
- def publish(e: Event) { for (l <- listeners) l(e) }
+ def publish(e: Event) { for (l <- listeners) if (l.isDefinedAt(e)) l(e) }
listenTo(this)
}