Skip to content

Commit

Permalink
Typo: renamed DefualtHandler to DefaultHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
vitan committed Jan 17, 2017
1 parent 24acd52 commit 75e0f77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion render.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func Init() error {
DefaultEvtStream.Merge("timer", NewTimerCh(time.Second))
DefaultEvtStream.Merge("custom", usrEvtCh)

DefaultEvtStream.Handle("/", DefualtHandler)
DefaultEvtStream.Handle("/", DefaultHandler)
DefaultEvtStream.Handle("/sys/wnd/resize", func(e Event) {
w := e.Data.(EvtWnd)
Body.Width = w.Width
Expand Down

0 comments on commit 75e0f77

Please sign in to comment.