1
0
Fork 0

ipa: Initialize the handlers if they are null

This avoids classes calling >>#initialize on load to initialize
the instance variable. It is a bit sad. If we would just return
handlers GST could optimize the method better (e.g. avoid calling
it and just return the variable).

We should call it initialize handlers or such. This can be done
in a follow up method.
This commit is contained in:
Holger Hans Peter Freyther 2013-04-29 15:39:33 +02:00
parent 6c8b36319b
commit 6df7f5e488
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ Object subclass: IPAProtoHandler [
]
IPAProtoHandler class >> handlers [
^ handlers
^ handlers ifNil: [self initialize. handlers].
]
registerOn: aDispatcher [