Skip to content

Commit

Permalink
Merge pull request #2 from ifross89/patch-1
Browse files Browse the repository at this point in the history
Fix build error in utils.go
  • Loading branch information
rusco committed May 3, 2015
2 parents 4fafde0 + dc33849 commit 97fbbf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ type Router struct {
}

func NewRouter() Router {
return Router{Object: js.Global.Get("Router").New()}
return Router{Object: *js.Global.Get("Router").New()}
}
func (r Router) On(path string, handler func(string)) {
r.Call("on", path, handler)
Expand Down

0 comments on commit 97fbbf3

Please sign in to comment.