diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-02-17 00:23:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-17 00:23:58 +0800 |
commit | bdef758d5c6d397584d0c35e53d6f6c318e61351 (patch) | |
tree | 0beb8c96c7bf6a5a82434ed79218e822927434c3 /vendor/github.com/gizak/termui/events.go | |
parent | c8695fae359aa327da9203a57ffaf4f2d47d4370 (diff) | |
parent | 2c4455b12aca82ccd29c05c1750c25430867e545 (diff) | |
download | dexon-bdef758d5c6d397584d0c35e53d6f6c318e61351.tar.gz dexon-bdef758d5c6d397584d0c35e53d6f6c318e61351.tar.zst dexon-bdef758d5c6d397584d0c35e53d6f6c318e61351.zip |
Merge pull request #3679 from fjl/vendor-govendor
vendor: update dependencies with github.com/kardianos/govendor
Diffstat (limited to 'vendor/github.com/gizak/termui/events.go')
-rw-r--r-- | vendor/github.com/gizak/termui/events.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vendor/github.com/gizak/termui/events.go b/vendor/github.com/gizak/termui/events.go index 5ba5263c0..16d9bd9cc 100644 --- a/vendor/github.com/gizak/termui/events.go +++ b/vendor/github.com/gizak/termui/events.go @@ -1,4 +1,4 @@ -// Copyright 2016 Zack Guo <zack.y.guo@gmail.com>. All rights reserved. +// Copyright 2017 Zack Guo <zack.y.guo@gmail.com>. All rights reserved. // Use of this source code is governed by a MIT license that can // be found in the LICENSE file. @@ -221,6 +221,7 @@ func findMatch(mux map[string]func(Event), path string) string { return pattern } + // Remove all existing defined Handlers from the map func (es *EvtStream) ResetHandlers() { for Path, _ := range es.Handlers { @@ -309,7 +310,7 @@ func NewTimerCh(du time.Duration) chan Event { return t } -var DefualtHandler = func(e Event) { +var DefaultHandler = func(e Event) { } var usrEvtCh = make(chan Event) |