diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-04-29 15:39:33 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-04-29 15:39:33 +0200 |
commit | 6df7f5e4889cb59ff1ce9206b303777b406bde2d (patch) | |
tree | a4e3b1bf24a47e4c5c4271f0f6286bd986832f49 | |
parent | 6c8b36319bc45c7bc3f55b1d42a2f754ea41ab18 (diff) |
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.
-rw-r--r-- | ipa/IPAProtoHandler.st | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipa/IPAProtoHandler.st b/ipa/IPAProtoHandler.st index b6060cd..d9e9582 100644 --- a/ipa/IPAProtoHandler.st +++ b/ipa/IPAProtoHandler.st @@ -38,7 +38,7 @@ Object subclass: IPAProtoHandler [ ] IPAProtoHandler class >> handlers [ - ^ handlers + ^ handlers ifNil: [self initialize. handlers]. ] registerOn: aDispatcher [ |