From 68d7c61c2424ec1b6a1cf6886375d75f308fedbe Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 28 Jul 2011 01:40:53 +0200 Subject: fixed typo in events.nim; last commit fixed #39 --- lib/pure/events.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/pure') 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 = @[] -- cgit 1.4.1-2-gfad0