Skip to content

Commit

Permalink
Fix #19 syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur White committed Apr 1, 2018
1 parent 84aec34 commit 7c22d88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.go
Expand Up @@ -211,7 +211,7 @@ func (j JQuery) Each(fn func(int, interface{})) JQuery {
}

func (j JQuery) Call(name string, args ...interface{}) JQuery {
return NewJQuery( j.o.Call(name, args...) )
return NewJQuery(j.o.Call(name, args...))
}

func (j JQuery) Underlying() *js.Object {
Expand Down Expand Up @@ -502,7 +502,7 @@ func (j JQuery) SetWidth(i interface{}) JQuery {
return j
}

func (j JQuery) Index(i interface{}...) int {
func (j JQuery) Index(i interface{}) int {
return j.o.Call("index", i).Int()
}

Expand Down

0 comments on commit 7c22d88

Please sign in to comment.