diff options
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/events.nim | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/pure/events.nim b/lib/pure/events.nim index 8ba637f9e..30ab324d6 100644 --- a/lib/pure/events.nim +++ b/lib/pure/events.nim @@ -16,13 +16,11 @@ type TEventArgs* = object of TObject ## Base object for event arguments ## that are passed to callback functions. - TEventHandler* = tuple[name: string, handlers: seq[proc(e:TEventArgs)]] - #PEventHandler* = ref TEventHandler ## An eventhandler for an event. + TEventHandler* = tuple[name: string, handlers: seq[proc(e:TEventArgs)]] ## An eventhandler for an event. type - TEventEmitter* = object {.pure, final.} + TEventEmitter* = object {.pure, final.} ## An object that fires events and holds event handlers for an object. s: seq[TEventHandler] - #PEventEmitter* = ref TEventEmitter ## An object that fires events and holds event handlers for an object. EInvalidEvent* = object of EInvalidValue proc newEventHandler*(name: string): TEventHandler = |