diff options
author | Amrykid <amrykid@gmail.com> | 2011-07-27 17:41:32 -0500 |
---|---|---|
committer | Amrykid <amrykid@gmail.com> | 2011-07-27 17:41:32 -0500 |
commit | ecd62b955b0a2417506e69bfd898af1b135b8f49 (patch) | |
tree | 588e3d3da55b654a3b72d754bfd8ce4f4b9fd875 /lib/pure | |
parent | 5209469fd703d3005f6e495c10cdad2da441fd57 (diff) | |
download | Nim-ecd62b955b0a2417506e69bfd898af1b135b8f49.tar.gz |
Small edit to documentation.
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 = |