diff options
author | Araq <rumpf_a@web.de> | 2011-07-28 01:40:53 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-07-28 01:40:53 +0200 |
commit | 68d7c61c2424ec1b6a1cf6886375d75f308fedbe (patch) | |
tree | c11abb165058b661280e2e29cfcd450f0ee49d82 /lib/pure | |
parent | f62264770480584fa6954df86cebb2182f386fa9 (diff) | |
download | Nim-68d7c61c2424ec1b6a1cf6886375d75f308fedbe.tar.gz |
fixed typo in events.nim; last commit fixed #39
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/events.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/events.nim b/lib/pure/events.nim index 413256657..a3a609b20 100644 --- a/lib/pure/events.nim +++ b/lib/pure/events.nim @@ -71,7 +71,7 @@ proc on*(emitter: var TEventEmitter, event: string, func: proc(e: TEventArgs)) = ## doesn't exist, it will be created. var i = getEventHandler(emitter, event) if i < 0: - var eh = newEventHandler(event) + var eh = initEventHandler(event) addHandler(eh, func) emitter.s.add(eh) else: @@ -93,4 +93,4 @@ proc emit*(emitter: var TEventEmitter, event: string, args: TEventArgs) = proc initEventEmitter*(): TEventEmitter = ## Creates and returns a new EventEmitter. #new(result) - result.s = @[] \ No newline at end of file + result.s = @[] |