makes tests green

This commit is contained in:
Andreas Rumpf
2016-01-15 14:44:54 +01:00
parent 46f1f41cc9
commit 0d4e52c648
10 changed files with 36 additions and 32 deletions

View File

@@ -57,7 +57,7 @@ proc addHandler*(handler: var EventHandler, fn: proc(e: EventArgs) {.closure.})
proc removeHandler*(handler: var EventHandler, fn: proc(e: EventArgs) {.closure.}) =
## Removes the callback from the specified event handler.
for i in countup(0, len(handler.handlers) -1):
for i in countup(0, len(handler.handlers)-1):
if fn == handler.handlers[i]:
handler.handlers.del(i)
break